Skip to content

Commit c7b43e0

Browse files
Allow buiding and pushing from goreleaser on main:
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. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent 8cb9ff0 commit c7b43e0

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)