From 04e5cee9ecabfb02c0ac497dc7d11524032c3427 Mon Sep 17 00:00:00 2001 From: adamus1red Date: Mon, 24 Oct 2022 15:22:35 +0100 Subject: [PATCH] Add basic multi-arch build support (#67) Co-authored-by: adamus1red --- .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 5476a37b3..e06744c53 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@v2 with: @@ -48,5 +55,6 @@ jobs: with: context: . push: true + platforms: ${{ env.PLATFORMS }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}