Skip to content

Commit

Permalink
ci: fix publish docker image extract_version
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdonado committed Jul 12, 2024
1 parent cd9a44f commit 08302e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
id: extract_version
run: |
VERSION=$(grep -oP 'version:\s*\K\S+' shard.yml)
echo "RELEASE_TAG=${VERSION}" >> $GITHUB_ENV
VERSION=$(echo $VERSION | tr -d '\n\r')
echo "RELEASE_TAG=$VERSION" >> $GITHUB_ENV
- name: Build and push image
id: push
Expand All @@ -46,7 +47,7 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
sjdonado/bit:latest
${{ github.event_name == 'release' && 'sjdonado/bit:${{ env.RELEASE_TAG }}' || '' }}
${{ github.event_name == 'release' && env.RELEASE_TAG && 'sjdonado/bit:${{ env.RELEASE_TAG }}' || '' }}
- name: Attest
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 08302e4

Please sign in to comment.