Skip to content

Commit

Permalink
Always build for all the platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Apr 15, 2021
1 parent 467bf7a commit e1f960e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e1f960e

Please sign in to comment.