Skip to content

Commit

Permalink
build: Tidy up goreleaser config (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored Jan 16, 2024
1 parent f1945a4 commit 9ce4891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ builds:
- GOOS={{ .Os }}
- GOARCH={{ .Arch }}
upx:
- enabled: "{{ .IsSnapshot }}"
goos:
- goos:
- linux
compress: "9"
lzma: true
Expand All @@ -90,7 +89,7 @@ archives:
dockers:
- image_templates:
# Specify the image tag including `-amd64` suffix if the build is not a snapshot build or is not being built on
# arm64 machine. This allows for using the snapshot image build without the archtecture specific suffix
# arm64 machine. This allows for using the snapshot image build without the architecture specific suffix
# consistently on local machines, i.e. can always use `ghcr.io/mesosphere/dynamic-credential-provider:v<VERSION>` on the machine the snapshot
# is built on.
#
Expand Down
4 changes: 1 addition & 3 deletions make/goreleaser.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ build-snapshot: ; $(info $(M) building snapshot $*)
--snapshot \
--clean \
--parallelism=$(GORELEASER_PARALLELISM) \
--single-target \
--skip-post-hooks
--single-target

.PHONY: release
release: ## Builds a release with goreleaser
Expand All @@ -36,6 +35,5 @@ release-snapshot: ; $(info $(M) building snapshot release $*)
goreleaser --debug=$(GORELEASER_DEBUG) \
release \
--snapshot \
--skip-publish \
--clean \
--parallelism=$(GORELEASER_PARALLELISM)

0 comments on commit 9ce4891

Please sign in to comment.