Skip to content

Commit db4d5ce

Browse files
committed
Update Workflow
1 parent f0945c7 commit db4d5ce

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/docker-backend.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ jobs:
4545
oauth-secret: $TS_OAUTH_SECRET
4646
tags: tag:whispern-ci
4747

48+
- name: Save the SSH key
49+
uses: webfactory/ssh-agent@v0.9.0
50+
with:
51+
ssh-private-key: ${{ secrets.SSH_KEY }}
52+
4853
- name: Execute SSH command on remote
4954
run: |
50-
cat > key.pem <<EOF
51-
${SSH_KEY}
52-
EOF
53-
chmod 600 key.pem
54-
ssh -i key.pem -o StrictHostKeyChecking=no nilsj@nilss-mac-mini.tailed622e.ts.net
55+
ssh nilsj@nilss-mac-mini.tailed622e.ts.net
5556
cd ~/Projects/iot-home/deployment/backend
5657
gunzip -f iot-backend.tar.gz
5758
docker load < iot-backend.tar

0 commit comments

Comments
 (0)