Skip to content

Commit

Permalink
ci: remove v prefix from image tags (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
microamp committed Sep 3, 2024
1 parent 1f57097 commit c264634
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ jobs:
prerelease: true
draft: false
commit: ${{ github.sha }}
tag: ${{ steps.semver.outputs.next }}
name: ${{ steps.semver.outputs.next }}
tag: ${{ steps.semver.outputs.nextStrict }}
name: ${{ steps.semver.outputs.nextStrict }}
body: '*pending*'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set Build Variables
id: buildvars
run: |
if [[ $next ]]; then
echo "Using AUTO SEMVER mode: $next"
echo "pkg_version=$next" >> $GITHUB_OUTPUT
echo "image_tags=ghcr.io/${{ github.repository }}:$next,ghcr.io/${{ github.repository }}:latest" >> $GITHUB_OUTPUT
echo "::notice::Release $next created using branch $GITHUB_REF_NAME"
if [[ $nextStrict ]]; then
echo "Using AUTO SEMVER mode: $nextStrict"
echo "pkg_version=$nextStrict" >> $GITHUB_OUTPUT
echo "image_tags=ghcr.io/${{ github.repository }}:$nextStrict,ghcr.io/${{ github.repository }}:latest" >> $GITHUB_OUTPUT
echo "::notice::Release $nextStrict created using branch $GITHUB_REF_NAME"
else
PKG_VERSION=v1.0.0-dev.$GITHUB_RUN_NUMBER
echo "Using TEST mode: $PKG_VERSION"
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
if: ${{ github.event.inputs.publish == 'true' }}
with:
token: ${{ github.token }}
fromTag: ${{ steps.semver.outputs.next }}
fromTag: ${{ steps.semver.outputs.nextStrict }}
toTag: ${{ steps.semver.outputs.current }}
writeToFile: false

Expand All @@ -125,8 +125,8 @@ jobs:
makeLatest: true
allowUpdates: true
draft: false
tag: ${{ steps.semver.outputs.next }}
name: ${{ steps.semver.outputs.next }}
tag: ${{ steps.semver.outputs.nextStrict }}
name: ${{ steps.semver.outputs.nextStrict }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit c264634

Please sign in to comment.