From a2d49989626b53f0feeb7136dca75ab004f24211 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 9 Dec 2020 14:50:51 +0100 Subject: [PATCH] GitHub: specify docker image platforms To enable building docker images for ARM64 platforms as well, we just need to specify the desired target platforms and the Docker Buildx service will do the job for us (provided the base images support the given platforms, which is the case for golang). --- .github/workflows/docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 963cec91..59ddfa13 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -37,6 +37,7 @@ jobs: uses: docker/build-push-action@v2 with: push: true + platforms: linux/amd64,linux/arm64 tags: "${{ env.DOCKER_REPO }}/${{ env.DOCKER_IMAGE }}:${{ env.RELEASE_VERSION }}" build-args: checkout=${{ env.RELEASE_VERSION }}