Skip to content

Commit 41b5a88

Browse files
committed
tag with only suffix if exists and ref is a tag
1 parent 736949e commit 41b5a88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,13 @@ jobs:
126126
flavor: |
127127
latest=${{ case ( '' == inputs.suffix, 'auto', '' ) }}
128128
prefix=
129-
suffix=${{ inputs.suffix }}
129+
suffix=${{ case ( '' == inputs.suffix, '', '-'inputs.suffix ) }}
130130
tags: |
131131
type=ref,event=branch
132132
type=ref,event=pr
133133
type=semver,pattern={{version}}
134134
type=semver,pattern={{major}}.{{minor}}
135+
type=raw,value=${{ inputs.suffix }},prefix=,suffix=,enable=${{ startsWith(github.ref, 'refs/tags/v') && '' != inputs.suffix }}
135136
136137
- name: Create manifest list and push
137138
working-directory: ${{ runner.temp }}/digests

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
image: firestarr-minimal
2222
cache-from: "type=registry,ref=ghcr.io/cwfmf/firestarr-cpp/cache:"
23-
suffix: "-minimal"
23+
suffix: "minimal"
2424

2525
cleanup-docker:
2626
needs: [build-docker-minimal]

0 commit comments

Comments
 (0)