Skip to content

Commit

Permalink
Merge pull request #270 from buildkite/triarius/fix-go-missing
Browse files Browse the repository at this point in the history
Fix go required in release step
  • Loading branch information
triarius authored Mar 13, 2024
2 parents e19f290 + 360ad9f commit 47a721a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ steps:
serviceAccountName: release
containers:
- name: release
image: alpine:latest
image: golang:1.22-alpine # Note goreleaser shells out to go!
command: [.buildkite/steps/release.sh]
envFrom:
- secretRef:
Expand Down
12 changes: 1 addition & 11 deletions .buildkite/steps/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,11 @@ if [[ -z "${BUILDKITE_TAG:-}" ]]; then
fi

ARCH=$(uname -m)
GOARCH=""
case "$ARCH" in
x86_64 | amd64)
GOARCH="amd64"
;;
aarch64 | arm64)
GOARCH="arm64"
;;
esac

GORELEASER_VERSION=1.19.2
GORELEASER_URL=https://github.com/goreleaser/goreleaser/releases/download
GORELEASER_FILE="goreleaser_${GORELEASER_VERSION}_${ARCH}.apk"
GHCH_VERSION=0.11.0
GHCH_URL="https://github.com/buildkite/ghch/releases/download/v${GHCH_VERSION}/ghch-${GOARCH}"
GHCH_URL="https://github.com/buildkite/ghch/releases/download/v${GHCH_VERSION}/ghch-$(go env GOARCH)"

echo --- :hammer: Installing packages
apk add --no-progress crane git
Expand Down

0 comments on commit 47a721a

Please sign in to comment.