Skip to content

Commit 60cd84a

Browse files
committed
fix: pass GHCR_TOKEN to deploy script
1 parent a414960 commit 60cd84a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
REGISTRY: ghcr.io
1616
IMAGE_NAME: ghcr.io/hammertoe/yhd
1717
STAGING_HOST: 89.167.73.70
18+
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
1819

1920
jobs:
2021
deploy:
@@ -30,7 +31,9 @@ jobs:
3031
host: ${{ env.STAGING_HOST }}
3132
username: matt
3233
key: ${{ secrets.STAGING_SSH_KEY }}
34+
envs: GHCR_TOKEN
3335
script: |
36+
export GHCR_TOKEN="$GHCR_TOKEN"
3437
cd /opt/yuhheardem3
3538
git pull origin main || echo "Git pull failed, continuing with existing scripts..."
3639
./deploy.sh ${{ github.event.workflow_run.head_sha }}

0 commit comments

Comments
 (0)