Skip to content

Commit

Permalink
build(Make): fixed GoReleaser install
Browse files Browse the repository at this point in the history
Broke on CI when releasing a new stable version.
https://app.circleci.com/pipelines/github/banzaicloud/banzai-cli/1501/workflows/f1c04f5d-a262-480d-bbed-423e6a177c0e/jobs/2652

Fixed by replacing the deprecated GoReleaser
install script.
  • Loading branch information
pregnor committed Nov 4, 2021
1 parent da21a21 commit 1ee1793
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ generate-telescopes-client: ## Generate client from Telescopes OpenAPI spec

bin/goreleaser: bin/goreleaser-${GORELEASER_VERSION}
@ln -sf goreleaser-${GORELEASER_VERSION} bin/goreleaser

# Note: removing the last line of the script because we install and run
# goreleaser in 2 separate steps, the last line is the execution line.
bin/goreleaser-${GORELEASER_VERSION}:
@mkdir -p bin
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b ./bin/ v${GORELEASER_VERSION}
curl -sfL https://git.io/goreleaser | sed '$$ d' | TMPDIR=./bin VERSION=v${GORELEASER_VERSION} bash
@mv bin/goreleaser $@

.PHONY: release
Expand Down

0 comments on commit 1ee1793

Please sign in to comment.