From cf9c7e26406b532392c455f0916b74b06df4bd02 Mon Sep 17 00:00:00 2001 From: Nicholas Malcolm Date: Mon, 30 Oct 2023 21:50:21 -0400 Subject: [PATCH] Build docker container for arm (#336) * Build all supported container platforms * Remove less popular platforms --- .github/workflows/publish-docker-auto.yml | 8 ++++++++ .github/workflows/publish-docker.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/publish-docker-auto.yml b/.github/workflows/publish-docker-auto.yml index 6c7a0b04..af48c86a 100644 --- a/.github/workflows/publish-docker-auto.yml +++ b/.github/workflows/publish-docker-auto.yml @@ -37,6 +37,10 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: @@ -44,3 +48,7 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: | + linux/amd64 + linux/arm/v7 + linux/arm64/v8 diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index c189d619..ff4e0d53 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -29,6 +29,10 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=raw,value=latest,enable={{is_default_branch}} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: @@ -36,3 +40,7 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: | + linux/amd64 + linux/arm/v7 + linux/arm64/v8