From c20fad31c5ea1ea6cfc1d20cf25dc7221c4ade10 Mon Sep 17 00:00:00 2001 From: adamus1red Date: Sun, 23 Oct 2022 01:48:20 +0100 Subject: [PATCH] Add basic multi-arch build support --- .github/workflows/publish-image.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index a89ae0b8d..042c2d973 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -18,6 +18,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} + PLATFORMS: linux/amd64,linux/arm64 jobs: build-and-push-image: @@ -30,6 +31,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: @@ -48,5 +55,6 @@ jobs: with: context: . push: true + platforms: ${{ env.PLATFORMS }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}