Skip to content

Commit

Permalink
[feat] build multiplatform docker images (amd64 + arm64)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x416e746f6e committed Feb 1, 2024
1 parent add1623 commit 847ea6b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ profile.cov
/dashboard/assets/package-lock.json

**/yarn-error.log
logs/
logs/

# goreleaser
/dist
30 changes: 27 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,33 @@ dockers:
build_flag_templates:
- --platform=linux/amd64
image_templates:
- "flashbots/suave-geth:{{ .ShortCommit }}"
- "flashbots/suave-geth:{{ .Tag }}"
- "flashbots/suave-geth:latest"
- "flashbots/suave-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-geth:{{ .Tag }}-amd64"
- "flashbots/suave-geth:latest-amd64"
- dockerfile: ./Dockerfile.suave
use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- --platform=linux/arm64
image_templates:
- "flashbots/suave-geth:{{ .ShortCommit }}-arm64"
- "flashbots/suave-geth:{{ .Tag }}-arm64"
- "flashbots/suave-geth:latest-arm64"

docker_manifests:
- name_template: "flashbots/suave-geth:{{ .ShortCommit }}"
image_templates:
- "flashbots/suave-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-geth:{{ .ShortCommit }}-arm64"
- name_template: "flashbots/suave-geth:{{ .Tag }}"
image_templates:
- "flashbots/suave-geth:{{ .Tag }}-amd64"
- "flashbots/suave-geth:{{ .Tag }}-arm64"
- name_template: "flashbots/suave-geth:latest"
image_templates:
- "flashbots/suave-geth:latest-amd64"
- "flashbots/suave-geth:latest-arm64"

checksum:
name_template: "checksums.txt"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ release:
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:v1.19.5 \
release --clean
release --clean --auto-snapshot

0 comments on commit 847ea6b

Please sign in to comment.