summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar2026-01-13 16:35:09 +0000
committerPetr Štetiar2026-01-13 16:49:33 +0000
commit38f03c85e96155168dcbde5dedb3f83119511fe1 (patch)
tree39ea90396e05638153779c2ef4c62cf16b17bf27
parent64696d96ed6c664b25bfc07fad4064397033868d (diff)
downloadbuildbot-main.tar.gz
ci: fix missing tag on containers on git tag pushesHEADv27main
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>
-rw-r--r--.github/workflows/build-push.yml2
1 files changed, 1 insertions, 1 deletions
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