mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
[feat] build multiplatform docker images (amd64 + arm64)
This commit is contained in:
parent
3fecc86d3e
commit
cc9adebb5f
3 changed files with 31 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -50,3 +50,6 @@ profile.cov
|
||||||
logs/
|
logs/
|
||||||
|
|
||||||
tests/spec-tests/
|
tests/spec-tests/
|
||||||
|
|
||||||
|
# goreleaser
|
||||||
|
/dist
|
||||||
|
|
|
||||||
|
|
@ -95,9 +95,33 @@ dockers:
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- --platform=linux/amd64
|
- --platform=linux/amd64
|
||||||
image_templates:
|
image_templates:
|
||||||
- "flashbots/suave-execution-geth:{{ .ShortCommit }}"
|
- "flashbots/suave-execution-geth:{{ .ShortCommit }}-amd64"
|
||||||
- "flashbots/suave-execution-geth:{{ .Tag }}"
|
- "flashbots/suave-execution-geth:{{ .Tag }}-amd64"
|
||||||
- "flashbots/suave-execution-geth:latest"
|
- "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:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -48,4 +48,4 @@ release:
|
||||||
-v `pwd`/sysroot:/sysroot \
|
-v `pwd`/sysroot:/sysroot \
|
||||||
-w /go/src/$(PACKAGE_NAME) \
|
-w /go/src/$(PACKAGE_NAME) \
|
||||||
ghcr.io/goreleaser/goreleaser-cross:v1.21 \
|
ghcr.io/goreleaser/goreleaser-cross:v1.21 \
|
||||||
release --clean
|
release --clean --auto-snapshot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue