From 4f1907abfaea60969428463bd084aedbecdc42c6 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Mon, 22 Sep 2025 16:46:21 +0100 Subject: [PATCH] ci: Change tag generation to use suffix flavour --- .../actions/create-docker-manifest/action.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.forgejo/actions/create-docker-manifest/action.yml b/.forgejo/actions/create-docker-manifest/action.yml index 10c9953a..ed6a05e7 100644 --- a/.forgejo/actions/create-docker-manifest/action.yml +++ b/.forgejo/actions/create-docker-manifest/action.yml @@ -61,14 +61,16 @@ runs: id: meta uses: docker/metadata-action@v5 with: + flavour: | + suffix=${{ inputs.tag_suffix }} tags: | - type=semver,pattern={{version}},prefix=v,suffix=${{ inputs.tag_suffix }} - type=semver,pattern={{major}}.{{minor}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.0.') }},prefix=v,suffix=${{ inputs.tag_suffix }} - type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }},prefix=v,suffix=${{ inputs.tag_suffix }} - type=ref,event=branch,prefix=${{ format('refs/heads/{0}', github.event.repository.default_branch) != github.ref && 'branch-' || '' }},suffix=${{ inputs.tag_suffix }} - type=ref,event=pr,suffix=${{ inputs.tag_suffix }} - type=sha,format=short,suffix=${{ inputs.tag_suffix }} - type=raw,value=latest${{ inputs.tag_suffix }},enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=semver,pattern={{version}},prefix=v + type=semver,pattern={{major}}.{{minor}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.0.') }},prefix=v + type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }},prefix=v + type=ref,event=branch,prefix=${{ format('refs/heads/{0}', github.event.repository.default_branch) != github.ref && 'branch-' || '' }}, + type=ref,event=pr + type=sha,format=short + type=raw,value=latest${{ inputs.tag_suffix }},enable=${{ startsWith(github.ref, 'refs/tags/v') }},priority=1100 images: ${{ inputs.images }} # default labels & annotations: https://github.com/docker/metadata-action/blob/master/src/meta.ts#L509 env: