Skip to content

Commit e1f960e

Browse files
committed
Always build for all the platforms
1 parent 467bf7a commit e1f960e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
env:
22
CONTAINER_IMAGE_TAG: githubchangeloggenerator/github-changelog-generator:latest
3+
DOCKER_BUILDX_PLATFORMS: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
34

45
name: Build and deploy latest image
56

@@ -22,12 +23,12 @@ jobs:
2223
uses: docker/setup-buildx-action@v1
2324
- name: Set up QEMU
2425
uses: docker/setup-qemu-action@v1
25-
- name: Build the container image for x86_64 to get early feedback
26+
- name: Build the container image
2627
uses: docker/build-push-action@v2
2728
with:
2829
context: .
2930
file: ./Dockerfile
30-
platforms: linux/amd64
31+
platforms: ${{ env.DOCKER_BUILDX_PLATFORMS }}
3132
push: false
3233
tags: ${{ env.CONTAINER_IMAGE_TAG }}
3334
deploy:
@@ -52,7 +53,7 @@ jobs:
5253
with:
5354
context: .
5455
file: ./Dockerfile
55-
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
56+
platforms: ${{ env.DOCKER_BUILDX_PLATFORMS }}
5657
push: true
5758
tags: ${{ env.CONTAINER_IMAGE_TAG }}
5859
- name: Test the container image

0 commit comments

Comments
 (0)