Skip to content

Commit 2f64513

Browse files
committed
chore(deployment): use marketplace action for docker context
1 parent 77d1ba8 commit 2f64513

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ 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 }}
4946
- name: Create Context
50-
run: |
51-
docker context create shapez-vortex --docker host=ssh://root@${{ secrets.DEPLOYMENT_HOST }}
52-
docker context use shapez-vortex
47+
uses: amirmarmul/docker-context-ssh-action@v2.1.3
48+
with:
49+
ssh-host: ${{ secrets.DEPLOYMENT_SSH_HOST }}
50+
ssh-username: ${{ secrets.DEPLOYMENT_SSH_USER }}
51+
ssh-private-key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
52+
context-use: true
5353
- name: Deploy
5454
working-directory: ./resources/deployment
5555
run: |

0 commit comments

Comments
 (0)