Skip to content

Commit

Permalink
chore(ci): always tag for Goreleaser with a valid semantic version (#184
Browse files Browse the repository at this point in the history
)

The last tag can be a non valid semantic version (fe. when we tag with
helm/vX.Y.Z), so let's force a valid semantic version for the
temporary Goreleaser tag.
  • Loading branch information
bfabio committed Nov 18, 2022
1 parent 61f7486 commit 1317032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-staging-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

-
# Tag with a temporary valid semantic version. This is required by goreleaser.
run: git tag $(git describe --tags --abbrev=0)-main-$(git rev-parse --short HEAD)
run: git tag v0-main-$(git rev-parse --short HEAD)

-
uses: goreleaser/goreleaser-action@v2
Expand Down

0 comments on commit 1317032

Please sign in to comment.