Skip to content

Commit

Permalink
fix docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
scrayos committed Nov 3, 2024
1 parent e5722f7 commit 8dea341
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
build:
strategy:
matrix:
platform:
variant:
- name: 'minimal'
tag: 'minimal'
suffix: ''
description: 'Minimal Production Image (without external cache)'
feature: 'default'
- name: 'testing'
tag: 'testing'
suffix: '-testing'
description: 'Static Integration Test Image'
feature: 'static-testing'
- name: 'redis'
tag: 'redis'
suffix: '-redis'
description: 'Production Image (with redis cache)'
feature: 'redis'
fail-fast: false
Expand Down Expand Up @@ -62,10 +62,12 @@ jobs:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
flavor: |
latest=false
suffix=-${{ matrix.variant.tag }}
latest=${{ matrix.variant.name == 'minimal' }}
suffix=${{ matrix.variant.suffix }}
labels: |
org.opencontainers.image.title=xenos (${{ matrix.variant.name }})
org.opencontainers.image.description=${{ matrix.variant.description }}
Expand All @@ -83,7 +85,7 @@ jobs:
context: .
build-args: |
"FEATURES=${{ matrix.variant.feature }}"
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 8dea341

Please sign in to comment.