Skip to content

Commit

Permalink
fix: add new step for version extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinmiran committed Oct 9, 2024
1 parent 8dbd5be commit 18454bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ 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
- name: Get New Version from pyproject.toml
id: extract_version
run: |
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
echo "VERSION=$VERSION" >> $GITHUB_ENV
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -68,5 +72,5 @@ jobs:
with:
context: .
tags: |
ghcr.io/${{ env.repo_name }}:${{ env.version }}
ghcr.io/${{ env.repo_name }}:${{ env.VERSION }}
ghcr.io/${{ env.repo_name }}:latest

0 comments on commit 18454bc

Please sign in to comment.