From e1f960e3d623f977edb6410db7807f3e34bfe89e Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Thu, 15 Apr 2021 09:34:12 +0000 Subject: [PATCH] Always build for all the platforms --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 25d5059..f946825 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,6 @@ env: CONTAINER_IMAGE_TAG: githubchangeloggenerator/github-changelog-generator:latest + DOCKER_BUILDX_PLATFORMS: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x name: Build and deploy latest image @@ -22,12 +23,12 @@ jobs: uses: docker/setup-buildx-action@v1 - name: Set up QEMU uses: docker/setup-qemu-action@v1 - - name: Build the container image for x86_64 to get early feedback + - name: Build the container image uses: docker/build-push-action@v2 with: context: . file: ./Dockerfile - platforms: linux/amd64 + platforms: ${{ env.DOCKER_BUILDX_PLATFORMS }} push: false tags: ${{ env.CONTAINER_IMAGE_TAG }} deploy: @@ -52,7 +53,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + platforms: ${{ env.DOCKER_BUILDX_PLATFORMS }} push: true tags: ${{ env.CONTAINER_IMAGE_TAG }} - name: Test the container image