Skip to content

Commit

Permalink
ghcr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SaumyaBhatt106 committed Dec 30, 2024
1 parent c71a265 commit 22dd9c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
git fetch --tags
if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
echo "tag-exists=true" >> $GITHUB_OUTPUT
echo "tag-exists=true"
else
echo "tag-exists=false" >> $GITHUB_OUTPUT
echo "tag-exists=false"
fi
build-and-push:
Expand Down Expand Up @@ -73,8 +75,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
Expand Down

0 comments on commit 22dd9c6

Please sign in to comment.