Skip to content

Commit 6effa32

Browse files
PM-Labsclaude
andcommitted
ci: use GHCR_TOKEN org secret for droplet docker login
GITHUB_TOKEN only works on the Actions runner, not external machines. GHCR_TOKEN is a PAT with read:packages scope that the droplet can use to pull from ghcr.io/pmlabs-org. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6506c34 commit 6effa32

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ jobs:
8282
- name: Deploy to droplet
8383
run: |
8484
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} \
85-
"cd /opt/pmin-mcpinfrastructure && \
86-
docker compose pull toggl && \
87-
docker compose up -d --force-recreate toggl"
85+
"echo '${{ secrets.GHCR_TOKEN }}' | docker login ghcr.io -u '${{ github.actor }}' --password-stdin \
86+
&& cd /opt/pmin-mcpinfrastructure \
87+
&& docker compose pull toggl \
88+
&& docker compose up -d --force-recreate toggl \
89+
&& docker logout ghcr.io"
8890
8991
- name: Health check
9092
run: |

0 commit comments

Comments
 (0)