Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
use matrix for platforms
  • Loading branch information
tomdess committed Aug 23, 2023
1 parent e1cd08b commit ec882d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
permissions:
contents: read
packages: write
Expand All @@ -36,7 +41,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64
platforms: ${{ matrix.platform }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

0 comments on commit ec882d7

Please sign in to comment.