From 73dfe57664b48edc4b40a47f7cc178f7828c6436 Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Mon, 8 Dec 2025 18:13:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20add=20GHCR=20authenticati?= =?UTF-8?q?on=20for=20staging=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The staging server needs to authenticate to ghcr.io to pull private images. Added docker login step using GHCR_PAT secret before deployment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/cd-staging-tagged.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cd-staging-tagged.yml b/.github/workflows/cd-staging-tagged.yml index 612c53e22..525a6f023 100644 --- a/.github/workflows/cd-staging-tagged.yml +++ b/.github/workflows/cd-staging-tagged.yml @@ -306,6 +306,12 @@ jobs: # Copy the docker-compose file scp docker-compose.staging.yml ${{ secrets.STAGING_USER }}@${{ secrets.STAGING_HOST }}:~/manacore-staging/docker-compose.yml + - name: Login to GHCR on staging server + run: | + ssh ${{ secrets.STAGING_USER }}@${{ secrets.STAGING_HOST }} << EOF + echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin + EOF + - name: Deploy service env: VERSION: ${{ needs.parse-deployment.outputs.version }}