Skip to content

Commit

Permalink
(fix): add GH token to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kameshsampath committed Apr 8, 2024
1 parent b24fb79 commit 820c296
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ jobs:
tags: |
${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_NAME }}:${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.MY_GH_ACTION_TOKEN }}
- name: Push image to GHCR
run: |
docker buildx imagetools create \
--tag ghcr.io/${{ env.IMAGE_NAME }}:latest \
--tag ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }} \
${{ env.IMAGE_NAME }}:latest
env:
GITHUB_TOKEN: ${{ secrets.MY_GH_ACTION_TOKEN }}

0 comments on commit 820c296

Please sign in to comment.