From 7e27daf37983a55c559d3c9143d0e3a3aa0582e5 Mon Sep 17 00:00:00 2001 From: Nicholas Malcolm Date: Sun, 29 Oct 2023 14:25:37 -0400 Subject: [PATCH 1/2] Build all supported container platforms Add option for all platforms supported by both the node and nginx base images. Mainly intersted in arm64 for myself. --- .github/workflows/publish-docker-auto.yml | 11 +++++++++++ .github/workflows/publish-docker.yml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/publish-docker-auto.yml b/.github/workflows/publish-docker-auto.yml index 6c7a0b04a..5400f4dc6 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,10 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: | + linux/amd64 + linux/arm/v6 + linux/arm/v7 + linux/arm64/v8 + linux/ppc64le + linux/s390x diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index c189d619a..8f62d5a73 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,10 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: | + linux/amd64 + linux/arm/v6 + linux/arm/v7 + linux/arm64/v8 + linux/ppc64le + linux/s390x From a23bde3845cc03b716431e62f87fac9f78423703 Mon Sep 17 00:00:00 2001 From: Nicholas Malcolm Date: Sun, 29 Oct 2023 17:12:43 -0400 Subject: [PATCH 2/2] Remove less popular platforms Actions times are expotentially higher, trying to reduce --- .github/workflows/publish-docker-auto.yml | 3 --- .github/workflows/publish-docker.yml | 3 --- 2 files changed, 6 deletions(-) diff --git a/.github/workflows/publish-docker-auto.yml b/.github/workflows/publish-docker-auto.yml index 5400f4dc6..af48c86ab 100644 --- a/.github/workflows/publish-docker-auto.yml +++ b/.github/workflows/publish-docker-auto.yml @@ -50,8 +50,5 @@ jobs: labels: ${{ steps.meta.outputs.labels }} platforms: | linux/amd64 - linux/arm/v6 linux/arm/v7 linux/arm64/v8 - linux/ppc64le - linux/s390x diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 8f62d5a73..ff4e0d53c 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -42,8 +42,5 @@ jobs: labels: ${{ steps.meta.outputs.labels }} platforms: | linux/amd64 - linux/arm/v6 linux/arm/v7 linux/arm64/v8 - linux/ppc64le - linux/s390x