Skip to content

Commit

Permalink
fix(sage-monorepo): use GH token to push images to GHCR (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Oct 4, 2024
1 parent 75dc882 commit 644ce95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- 'agora/v*'
- 'openchallenges/v*'

permissions:
packages: write

env:
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ github.actor }}
PRODUCT: ''
VERSION: ''

Expand Down Expand Up @@ -41,5 +42,5 @@ jobs:
run: |
devcontainer exec --workspace-folder ../sage-monorepo bash -c ". ./dev-env.sh \
&& export VERSION=${{ env.VERSION }} \
&& echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin ghcr.io \
&& echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin \
&& nx run-many --target=build-image --projects=${{ env.PRODUCT }}-* --configuration=ci"

0 comments on commit 644ce95

Please sign in to comment.