ci: Changed to multiarch build of amd64, arm64, arm32v6

This commit is contained in:
Geoff Bourne
2020-12-28 12:09:59 -06:00
parent c7aa9504f4
commit 44d4766f60
4 changed files with 82 additions and 59 deletions
+39 -7
View File
@@ -16,8 +16,8 @@ builds:
- windows
goarch:
- amd64
goarm:
- "6"
- arm64
- arm
main: ./cmd/mc-router
binary: mc-router
env:
@@ -28,18 +28,50 @@ archives:
format_overrides:
- goos: windows
format: zip
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE*
- README*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
name_template: SNAPSHOT-{{ .ShortCommit }}
dockers:
- image_templates:
- "itzg/mc-router:latest"
- "itzg/mc-router:{{.Tag}}"
goos: linux
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
- "itzg/{{ .ProjectName }}:latest"
goarch: amd64
build_flag_templates:
- --platform
- linux/amd64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
binaries:
- mc-router
- image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
goarch: arm64
binaries:
- mc-router
build_flag_templates:
- --platform
- linux/arm64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
goarch: arm
goarm: "6"
build_flag_templates:
- --platform
- linux/arm/v6
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
binaries:
- mc-router
docker_manifests:
- name_template: "itzg/{{ .ProjectName }}:{{ .Version }}"
image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
changelog:
filters:
exclude: