Skip to content

Commit

Permalink
Build matrix for the Wine container
Browse files Browse the repository at this point in the history
  • Loading branch information
bubylou committed Dec 14, 2024
1 parent c1600e0 commit fa5f641
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
strategy:
matrix:
wine: [true, false]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -55,7 +58,8 @@ jobs:
type=semver,pattern={{version}},value=${{ inputs.version }}
type=ref,event=branch,suffix=-{{ sha }}
type=ref,event=pr
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=latest,enable={{ is_default_branch and not matrix.wine }}
type=raw,value=wine,enable={{ matrix.wine }}
# Build and push Docker image with Buildx (don't push on PR)
- name: Build and push Docker image
Expand All @@ -68,9 +72,8 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: |
linux/386
linux/amd64
platforms: linux/amd64
build-args: WINE_ENABLED=${{ matrix.wine }}

# Sign the resulting Docker image digest except on PRs.
- name: Sign the published Docker image
Expand Down

0 comments on commit fa5f641

Please sign in to comment.