Skip to content

Commit

Permalink
Merge pull request #140 from georgettica/georgettica/build-using-go-1…
Browse files Browse the repository at this point in the history
….16.6

feat(build): make goreleaser work on macos aswell
  • Loading branch information
openshift-merge-robot authored Sep 13, 2021
2 parents c1b5a39 + 9d7d928 commit c5fc1e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ fmt:
@gofmt -w -s .
@git diff --exit-code .

OS := $(shell go env GOOS | sed 's/[a-z]/\U&/')
.PHONY: download-goreleaser
download-goreleaser:
mkdir -p ./bin && curl -sSLf https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_Linux_x86_64.tar.gz -o - | tar --extract --gunzip --directory ./bin goreleaser
mkdir -p ./bin && curl -sSLf https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_${OS}_x86_64.tar.gz -o - | tar --extract --gunzip --directory ./bin goreleaser

# CI build containers don't include goreleaser by default,
# so they need to get it first, and then run the build
Expand Down

0 comments on commit c5fc1e0

Please sign in to comment.