Skip to content

Commit

Permalink
Use matrix for multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
timower committed Nov 13, 2023
1 parent 4a34be0 commit 77f8843
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
permissions:
contents: read
packages: write
strategy:
matrix:
fw_version: ['2.15.1', '3.3.2', '3.5.2']
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -32,6 +35,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
suffix=${{ matrix.fw_version }},onlatest=true
- name: Build
uses: docker/build-push-action@v5
Expand All @@ -41,5 +47,7 @@ jobs:
target: qemu-toltec
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
fw_version=${{ matrix.fw_version }}

0 comments on commit 77f8843

Please sign in to comment.