Skip to content

Commit

Permalink
fix: add version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinmiran committed Oct 9, 2024
1 parent 821a379 commit 9e40b3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
git config user.email "[email protected]"
bump2version ${{ env.bump_type }}
git push --follow-tags
echo "version=$(bump2version --dry-run --list | grep new_version | sed -r s,'^.*=',,)" >> $GITHUB_ENV
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -67,5 +68,5 @@ jobs:
with:
context: .
tags: |
ghcr.io/${{ env.repo_name }}:${{ github.ref_name }}
ghcr.io/${{ env.repo_name }}:${{ env.version }}
ghcr.io/${{ env.repo_name }}:latest

0 comments on commit 9e40b3d

Please sign in to comment.