Skip to content

Commit 7a30182

Browse files
Simon HedströmSimon Hedström
Simon Hedström
authored and
Simon Hedström
committed
fix: add credentials to final deploy step
1 parent e000890 commit 7a30182

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-and-deploy.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
env:
88
REGISTRY: ghcr.io
99
IMAGE_NAME: ${{ github.repository }}
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
1012

1113
jobs:
1214
docker:
@@ -46,4 +48,4 @@ jobs:
4648
username: ${{ secrets.SSH_USERNAME }}
4749
key: ${{ secrets.SSH_KEY }}
4850
port: 22
49-
script: cd control-app && docker compose up -d
51+
script: cd control-app && echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin && docker compose up -d

0 commit comments

Comments
 (0)