From: Petr Štetiar Date: Tue, 13 Jan 2026 16:35:09 +0000 (+0100) Subject: ci: fix missing tag on containers on git tag pushes X-Git-Tag: v27^0 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=38f03c85e96155168dcbde5dedb3f83119511fe1;p=buildbot.git ci: fix missing tag on containers on git tag pushes Non semver tags like v26 were not included in metadata output, so image pushes only produced sha- tags. Add tag reference metadata so tag pushes publish a matching container tag. ##[warning]v26 is not a valid semver. More info: https://semver.org/ ##[group]Docker tags ghcr.io/openwrt/buildbot/buildmaster-v3.11.8:sha-f2c82f2 Fixes: 93918cc2e225 ("ci: add support for testing PR containers") Signed-off-by: Petr Štetiar --- diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index c9f07c6..774f7a5 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -148,8 +148,8 @@ jobs: tags: | type=raw,value=pr-${{ inputs.pr_number }},enable=${{ github.event_name == 'workflow_dispatch' }} type=ref,event=branch,enable=${{ github.event_name != 'workflow_dispatch' }} + type=ref,event=tag,enable=${{ github.event_name != 'workflow_dispatch' }} type=sha,prefix=sha-,enable=${{ github.event_name != 'workflow_dispatch' }} - type=semver,pattern={{version}} - name: Login to GitHub Container Registry uses: docker/login-action@v3