Merge pull request #12 from flashbots/feat/multiplatform-docker-images

Build multiplatform docker images (`amd64` + `arm64`)
This commit is contained in:
Anton 2024-02-05 15:33:01 +02:00 committed by GitHub
commit 9b2bee565d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 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

@ -2,6 +2,7 @@ FROM debian:bullseye
LABEL "org.opencontainers.image.source"="https://github.com/flashbots/suave-execution-geth"
COPY ./suave-execution-geth /bin/
COPY ./suave-execution-geth /bin/geth
EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["suave-execution-geth"]

View file

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