Skip to content

Commit

Permalink
Update registry secret
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc authored Feb 17, 2025
1 parent 3d28a6b commit 68aedf1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,10 @@ jobs:
echo "FULL_IMAGE_NAME=$IMAGE_NAME:$VERSION" >> $GITHUB_ENV
docker build -t $IMAGE_NAME:$VERSION -f Dockerfile .
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Log in to GitHub Container Registry
run: echo $GITHUB_REGISTRY_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
run: echo $REGISTRY_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
env:
GITHUB_REGISTRY_TOKEN: ${{ steps.app-token.outputs.token }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}

- name: Push Docker image to GitHub Container Registry
run: |
Expand Down

0 comments on commit 68aedf1

Please sign in to comment.