From f5fde731b02cc4d2b0ec1c879b209c04a29292e3 Mon Sep 17 00:00:00 2001 From: Rob van Oostenrijk Date: Fri, 31 Mar 2023 08:37:11 +0400 Subject: [PATCH] Build multi-architecture image Build image output both for amd64 & arm64 --- .github/workflows/github-image.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/github-image.yml b/.github/workflows/github-image.yml index c240bf8..fb6d30d 100644 --- a/.github/workflows/github-image.yml +++ b/.github/workflows/github-image.yml @@ -28,6 +28,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + + - name: Setup qemu + uses: docker/setup-qemu-action@v2.1.0 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2.5.0 - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 @@ -46,6 +52,7 @@ jobs: uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}