Skip to content

Commit

Permalink
fix: add credentials to final deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hedström authored and Simon Hedström committed Sep 23, 2024
1 parent e000890 commit 7a30182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


jobs:
docker:
Expand Down Expand Up @@ -46,4 +48,4 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: cd control-app && docker compose up -d
script: cd control-app && echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin && docker compose up -d

0 comments on commit 7a30182

Please sign in to comment.