Skip to content

Commit a64100f

Browse files
authored
Update django.yml
1 parent d3f12e2 commit a64100f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/django.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Configure SSH
15+
env:
16+
SSH_USER: ${{ secrets.SSH_USER }}
17+
SSH_KEY: ${{ secrets.SSH_KEY }}
18+
SSH_HOST: ${{ secrets.SSH_HOST }}
1519
run: |
1620
mkdir -p ~/.ssh/
1721
echo "$SSH_KEY" > ~/.ssh/production.key
@@ -23,10 +27,6 @@ jobs:
2327
IdentityFile ~/.ssh/staging.key
2428
StrictHostKeyChecking no
2529
END
26-
env:
27-
SSH_USER: ${{ secrets.SSH_USER }}
28-
SSH_KEY: ${{ secrets.SSH_KEY }}
29-
SSH_HOST: ${{ secrets.SSH_HOST }}
3030
- name: Deploy to Server
3131
run: |
3232
ssh production 'cd /home/django/bakeup/'

0 commit comments

Comments
 (0)