Skip to content

Commit

Permalink
Merge pull request #269 from buildkite/triarius/fix-release-goarch
Browse files Browse the repository at this point in the history
Fix go not available in release step
  • Loading branch information
triarius authored Mar 13, 2024
2 parents 769f461 + 0617db7 commit e19f290
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .buildkite/steps/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ 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-$(go env GOARCH)"
GHCH_URL="https://github.com/buildkite/ghch/releases/download/v${GHCH_VERSION}/ghch-${GOARCH}"

echo --- :hammer: Installing packages
apk add --no-progress crane git
Expand Down
20 changes: 20 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,23 @@ config:
```
The `config` key contains configuration passed directly to the binary, and so supports all the keys documented in [the example](examples/config.yaml).

# Release
1. Make sure you're on the main branch!
1. Create a tag
```bash
git -sm v0.x.x v0.x.x
```
1. Push your tag
```bash
git push --tags
```
1. A build will start at https://buildkite.com/buildkite-kubernetes-stack/kubernetes-agent-stack/builds?branch=v0.x.x. It will create a draft release with a changelog. Edit the changelog to group the PRs in to sections like
```
# Added
# Fixed
# Changed
# Security
# Internal
```
1. Publish the release 🎉

0 comments on commit e19f290

Please sign in to comment.