Skip to content

Commit a8a6a38

Browse files
committed
Update Workflow
1 parent 6eeb46e commit a8a6a38

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/docker-backend.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
IMAGE_NAME: iot-backend
2020
TS_OAUTH_CLIENT_ID: ${{ secrets.TS_OAUTH_CLIENT_ID }}
2121
TS_OAUTH_SECRET: ${{ secrets.TS_OAUTH_SECRET }}
22-
HOST: ${{ secrets.SSH_NAME }}
22+
HOST: ${{ secrets.SSH_HOST }}
23+
NAME: ${{ secrets.SSH_NAME }}
24+
KEY: ${{ secrets.KEY }}
2325
steps:
2426
- uses: actions/checkout@v4
2527

@@ -46,9 +48,9 @@ jobs:
4648
- name: Execute SSH command on remote
4749
uses: appleboy/ssh-action@v1.0.0
4850
with:
49-
host: ${{ secrets.SSH_HOST }}
50-
username: ${{ secrets.SSH_NAME }}
51-
key: ${{ secrets.SSH_KEY }}
51+
host: $HOST
52+
username: $NAME
53+
key: $KEY
5254
port: 22
5355
script: |
5456
cd ~/Projects/iot-home/deployment/backend

0 commit comments

Comments
 (0)