fix(ci): add multi-arch image builds

Fixes !2282.
This commit is contained in:
Alexander 2021-08-28 07:05:08 +09:00
parent dc936921aa
commit 29bc6cb9a2
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ jobs:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
file: ./docker/Dockerfile file: ./docker/Dockerfile
platforms: linux/amd64 platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
@ -109,6 +109,6 @@ jobs:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
file: ./docker/Dockerfile.go_build file: ./docker/Dockerfile.go_build
platforms: linux/amd64 platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}

View file

@ -58,7 +58,7 @@ jobs:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
file: ./docker/Dockerfile.go_build file: ./docker/Dockerfile.go_build
platforms: linux/amd64 platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
build-large: build-large:
@ -113,6 +113,6 @@ jobs:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
file: ./docker/Dockerfile.go_build_large file: ./docker/Dockerfile.go_build_large
platforms: linux/amd64 platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}