Skip to content

Commit

Permalink
release binaries and docker images for arm64 (#170)
Browse files Browse the repository at this point in the history
* goreleaser creates arm64 release binaries
* add multi-arch docker build; includes arm64
  • Loading branch information
jhump committed Feb 16, 2022
1 parent 2b1a1df commit 6a5a14b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Expand Up @@ -8,9 +8,12 @@ builds:
goarch:
- amd64
- 386
- arm64
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm64
ldflags:
- -s -w -X main.version=v{{.Version}}

Expand Down
15 changes: 10 additions & 5 deletions releasing/do-release.sh
Expand Up @@ -40,12 +40,17 @@ $PREFIX git checkout go.mod go.sum
# if there are no valid current credentials.
$PREFIX docker login
echo "$VERSION" > VERSION
$PREFIX docker build -t "fullstorydev/grpcui:${VERSION}" .
rm VERSION

# Docker Buildx support is included in Docker 19.03
# Below step installs emulators for different architectures on the host
# This enables running and building containers for below architectures mentioned using --platforms
$PREFIX docker run --privileged --rm tonistiigi/binfmt:qemu-v6.1.0 --install all
# Create a new builder instance
export DOCKER_CLI_EXPERIMENTAL=enabled
$PREFIX docker buildx create --use --name multiarch-builder --node multiarch-builder0
# push to docker hub, both the given version as a tag and for "latest" tag
$PREFIX docker push "fullstorydev/grpcui:${VERSION}"
$PREFIX docker tag "fullstorydev/grpcui:${VERSION}" fullstorydev/grpcui:latest
$PREFIX docker push fullstorydev/grpcui:latest
$PREFIX docker buildx build --platform linux/amd64,linux/arm64 --tag fullstorydev/grpcui:${VERSION} --tag fullstorydev/grpcui:latest --push --progress plain --no-cache .
rm VERSION

# Homebrew release

Expand Down

0 comments on commit 6a5a14b

Please sign in to comment.