Skip to content

Commit 77d1ba8

Browse files
committed
chore(deployment): add ssh key step to cd workflow
1 parent 6014b73 commit 77d1ba8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ jobs:
4343
steps:
4444
- name: Checkout
4545
uses: actions/checkout@v4
46+
- name: Add ssh-key
47+
run: |
48+
ssh-add - <<< ${{ secrets.DEPLOYMENT_SSH_KEY }}
4649
- name: Create Context
47-
env:
48-
DEPLOYMENT_HOST: ${{ secrets.DEPLOYMENT_HOST }}
4950
run: |
50-
docker context create shapez-vortex --docker host=ssh://root@${{ env.DEPLOYMENT_HOST }}
51+
docker context create shapez-vortex --docker host=ssh://root@${{ secrets.DEPLOYMENT_HOST }}
5152
docker context use shapez-vortex
5253
- name: Deploy
5354
working-directory: ./resources/deployment

0 commit comments

Comments
 (0)