Docker: use buildx to build amd64 and arm64 images

pull/5475/head
Grant Slater 2022-03-19 20:57:29 +00:00 committed by Richard Hansen
parent 4b4d6caf25
commit a11cf67de7
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,10 @@ jobs:
- -
name: Check out name: Check out
uses: actions/checkout@v3 uses: actions/checkout@v3
-
name: Set up QEMU
if: github.event_name == 'push'
uses: docker/setup-qemu-action@v1
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
@ -78,6 +82,7 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}