Skip to content

Commit b6dc66c

Browse files
authored
Allow building and pushing from goreleaser on main: (#497)
## Description This gets around the error, "git doesn't contain any tags" and allows builds from main without a new tag to push `sha-<git short hash>` and `latest` tags on container image builds. Fixes: # ## How Has This Been Tested? ## How are existing users impacted? What migration steps/scripts do we need? ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents 434327e + d240518 commit b6dc66c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ jobs:
103103
env:
104104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105105
IS_RELEASE: false
106+
GORELEASER_EXTRA_FLAGS: "--skip=validate"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ build-image: $(GORELEASER) ## Build the container image
144144

145145
.PHONY: build-image-push
146146
build-image-push: $(GORELEASER) ## Build and push the container image
147-
${GORELEASER} release --clean --verbose
147+
${GORELEASER} release --clean --verbose ${GORELEASER_EXTRA_FLAGS}
148148

149149
## --------------------------------------
150150
## Manifest Image Update

0 commit comments

Comments
 (0)