Skip to content

Commit ec882d7

Browse files
authored
Update docker-publish.yml
use matrix for platforms
1 parent e1cd08b commit ec882d7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
build:
2727

2828
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
platform:
32+
- linux/amd64
33+
- linux/arm64
2934
permissions:
3035
contents: read
3136
packages: write
@@ -36,7 +41,7 @@ jobs:
3641
- name: Set up QEMU
3742
uses: docker/setup-qemu-action@v2
3843
with:
39-
platforms: amd64,arm64
44+
platforms: ${{ matrix.platform }}
4045
- name: Set up Docker Buildx
4146
uses: docker/setup-buildx-action@v2
4247

@@ -67,6 +72,6 @@ jobs:
6772
push: ${{ github.event_name != 'pull_request' }}
6873
tags: ${{ steps.meta.outputs.tags }}
6974
labels: ${{ steps.meta.outputs.labels }}
70-
platforms: linux/amd64,linux/arm64
75+
platforms: ${{ matrix.platform }}
7176
provenance: false
7277
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Dockerized HAProxy with Lets Encrypt certificates automatic renewal

0 commit comments

Comments
 (0)