From 2d5ae6f30d022516255d91222bb470a89551b081 Mon Sep 17 00:00:00 2001 From: germondai Date: Thu, 23 Jul 2026 00:45:16 +0200 Subject: [PATCH] ci(publish): strip v prefix from docker tags + gate nightly- to main --- .github/workflows/publish.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86bc650..b2db780 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -98,12 +98,15 @@ jobs: with: images: ${{ env.IMAGE }} tags: | - # Versioned release tag (e.g. v1.0.0) → keep the v prefix. - type=ref,event=tag + # Versioned release tag: git tag v1.0.0 → docker tag 1.0.0 (strips the v prefix, + # per Docker convention; type=ref would mirror the v through). type=semver also + # auto-attaches :latest via the default latest=auto flavor. + type=semver,pattern={{version}} # main branch push → :nightly (disposable test build). type=raw,value=nightly,enable=${{ github.ref == 'refs/heads/main' }} - # main branch push → :nightly- for traceability. - type=sha,prefix=nightly- + # main branch push → :nightly- for traceability. Gated so a vX.Y.Z + # tag push does NOT also inherit a nightly- tag (only main builds are nightly). + type=sha,prefix=nightly-,enable=${{ github.ref == 'refs/heads/main' }} - name: Create and push multi-arch manifest working-directory: /tmp/digests