gitea workflow: build on main too (tags main + short sha; latest stays the newest release)
Publish image / publish (push) Successful in 3m48s

This commit is contained in:
Worph
2026-10-13 11:03:40 +00:00
parent 9c6f40c397
commit 12e3ab44f3
+7 -2
View File
@@ -16,9 +16,11 @@
name: Publish image name: Publish image
# Build and push the Docker image to the IPCR # Build and push the Docker image to the IPCR
# (ipcr-push-watch.nsl.sh) on version tags only. # on main (tags main + short sha) and on v* tags (version; latest).
on: on:
push: push:
branches:
- main
tags: tags:
- 'v*' - 'v*'
@@ -69,7 +71,10 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=raw,value=latest type=ref,event=branch
type=sha,format=short
# latest = newest release, not main
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6