mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
🔧 fix: add GHCR authentication for staging server
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 <noreply@anthropic.com>
This commit is contained in:
parent
59ce92af1a
commit
73dfe57664
1 changed files with 6 additions and 0 deletions
6
.github/workflows/cd-staging-tagged.yml
vendored
6
.github/workflows/cd-staging-tagged.yml
vendored
|
|
@ -306,6 +306,12 @@ jobs:
|
||||||
# Copy the docker-compose file
|
# Copy the docker-compose file
|
||||||
scp docker-compose.staging.yml ${{ secrets.STAGING_USER }}@${{ secrets.STAGING_HOST }}:~/manacore-staging/docker-compose.yml
|
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
|
- name: Deploy service
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.parse-deployment.outputs.version }}
|
VERSION: ${{ needs.parse-deployment.outputs.version }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue