mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-25 12:05:14 +01:00
ci: Added platform to docker build cmd line
This commit is contained in:
parent
58fb69878a
commit
8ccbdbfa38
@ -38,6 +38,9 @@ dockers:
|
||||
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
|
||||
- "itzg/{{ .ProjectName }}:latest"
|
||||
goarch: amd64
|
||||
build_flag_templates:
|
||||
- --platform
|
||||
- linux/amd64
|
||||
binaries:
|
||||
- mc-router
|
||||
- image_templates:
|
||||
@ -45,10 +48,16 @@ dockers:
|
||||
goarch: arm64
|
||||
binaries:
|
||||
- mc-router
|
||||
build_flag_templates:
|
||||
- --platform
|
||||
- linux/arm64
|
||||
- image_templates:
|
||||
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
|
||||
goarch: arm
|
||||
goarm: "6"
|
||||
build_flag_templates:
|
||||
- --platform
|
||||
- linux/arm/v6
|
||||
binaries:
|
||||
- mc-router
|
||||
docker_manifests:
|
||||
|
@ -1,4 +1,3 @@
|
||||
ARG TARGETPLATFORM
|
||||
FROM --platform=$TARGETPLATFORM scratch
|
||||
FROM scratch
|
||||
COPY mc-router /
|
||||
ENTRYPOINT ["/mc-router"]
|
||||
|
Loading…
Reference in New Issue
Block a user