From 9e40b3d23166edf17e6c4df452e73a921f4281a5 Mon Sep 17 00:00:00 2001 From: Yasin Date: Wed, 9 Oct 2024 14:03:58 +0200 Subject: [PATCH] fix: add version tag --- .github/workflows/publish-docker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 81b3761..1b70b3b 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -44,6 +44,7 @@ jobs: git config user.email "actions@github.com" 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 @@ -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