Skip to content

Commit e15d233

Browse files
Shawclaude
andcommitted
fix(ci): use GHCR_TOKEN for gateway-discord image push
GITHUB_TOKEN from elizaos/eliza cannot write to a package originally linked to the old elizaos/cloud repo. Switch the build job to the GHCR_TOKEN PAT from environment secrets (already present in gateway-dev/gateway-prd) and add the environment binding so those secrets are accessible. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9c3fec7 commit e15d233

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/cloud-gateway-discord.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ jobs:
446446
if: |
447447
github.event_name != 'pull_request' &&
448448
(needs.detect-changes.outputs.app == 'true' || (github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'deploy'))
449+
environment: ${{ needs.detect-changes.outputs.environment }}
449450
permissions:
450451
contents: read
451452
packages: write
@@ -462,8 +463,8 @@ jobs:
462463
uses: docker/login-action@v4
463464
with:
464465
registry: ${{ env.REGISTRY }}
465-
username: ${{ github.actor }}
466-
password: ${{ secrets.GITHUB_TOKEN }}
466+
username: ${{ secrets.GHCR_USERNAME }}
467+
password: ${{ secrets.GHCR_TOKEN }}
467468

468469
- name: Extract metadata
469470
id: meta

0 commit comments

Comments
 (0)