Skip to content

Commit

Permalink
chore: Add matrix for building debian flavor tag
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Feb 1, 2024
1 parent 6c6126b commit 3152933
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/publishImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./Dockerfile
suffix: ''
- dockerfile: ./debian.Dockerfile
suffix: '-debian'
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
packages: write
Expand Down Expand Up @@ -48,9 +56,9 @@ jobs:
# generate Docker tags based on the following events/attributes
# https://github.com/docker/metadata-action/issues/247#issuecomment-1511259674 for NOT is default branch
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch,enable={{#if is_default_branch}}false{{else}}true{{/if}}
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}},suffix=${{ matrix.suffix }}
type=ref,event=branch,enable={{#if is_default_branch}}false{{else}}true{{/if}},suffix=${{ matrix.suffix }}
type=semver,pattern={{version}},suffix=${{ matrix.suffix }}
flavor: |
latest=false
Expand All @@ -64,6 +72,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ${{ matrix.dockerfile }}
push: ${{ github.event_name != 'pull_request' && !env.ACT}}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 3152933

Please sign in to comment.