Build multi-arch image with buildx

For #16
This commit is contained in:
Geoff Bourne 2020-12-28 13:00:25 -06:00
parent 44d4766f60
commit 5bc93cb3e4
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,11 @@ jobs:
with:
go-version: 1.15
- name: Setup docker buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Docker login
uses: docker/login-action@v1
with:

View File

@ -41,6 +41,7 @@ dockers:
build_flag_templates:
- --platform
- linux/amd64
- --load
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
binaries:
@ -53,6 +54,7 @@ dockers:
build_flag_templates:
- --platform
- linux/arm64
- --load
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- image_templates:
@ -62,6 +64,7 @@ dockers:
build_flag_templates:
- --platform
- linux/arm/v6
- --load
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
binaries: