ci: fix missing tag on containers on git tag pushes main v27
authorPetr Štetiar <ynezz@true.cz>
Tue, 13 Jan 2026 16:35:09 +0000 (17:35 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 13 Jan 2026 16:49:33 +0000 (17:49 +0100)
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 <ynezz@true.cz>
.github/workflows/build-push.yml

index c9f07c6b6c0d7bb694c9dd7a21ac69db06589183..774f7a5a93c3085221c1c84f6d92e7c0e9ec210a 100644 (file)
@@ -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