gitea workflow: build on main too (tags main + short sha; latest stays the newest release)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user