[feat] build multiplatform docker images (amd64 + arm64)

This commit is contained in:
Anton Bronnikov 2024-02-01 16:03:20 +02:00
parent 3fecc86d3e
commit cc9adebb5f
No known key found for this signature in database
GPG key ID: E4D7F389D62E58B2
3 changed files with 31 additions and 4 deletions

3
.gitignore vendored
View file

@ -50,3 +50,6 @@ profile.cov
logs/
tests/spec-tests/
# goreleaser
/dist

View file

@ -95,9 +95,33 @@ dockers:
build_flag_templates:
- --platform=linux/amd64
image_templates:
- "flashbots/suave-execution-geth:{{ .ShortCommit }}"
- "flashbots/suave-execution-geth:{{ .Tag }}"
- "flashbots/suave-execution-geth:latest"
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-execution-geth:{{ .Tag }}-amd64"
- "flashbots/suave-execution-geth:latest-amd64"
- dockerfile: ./Dockerfile.suave
use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- --platform=linux/arm64
image_templates:
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-arm64"
- "flashbots/suave-execution-geth:{{ .Tag }}-arm64"
- "flashbots/suave-execution-geth:latest-arm64"
docker_manifests:
- name_template: "flashbots/suave-execution-geth:{{ .ShortCommit }}"
image_templates:
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-arm64"
- name_template: "flashbots/suave-execution-geth:{{ .Tag }}"
image_templates:
- "flashbots/suave-execution-geth:{{ .Tag }}-amd64"
- "flashbots/suave-execution-geth:{{ .Tag }}-arm64"
- name_template: "flashbots/suave-execution-geth:latest"
image_templates:
- "flashbots/suave-execution-geth:latest-amd64"
- "flashbots/suave-execution-geth:latest-arm64"
checksum:
name_template: "checksums.txt"

View file

@ -48,4 +48,4 @@ release:
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:v1.21 \
release --clean
release --clean --auto-snapshot