docker: Restrict tagging 'latest' to version tags

This commit is contained in:
Tim Schumacher 2025-01-04 14:14:38 +01:00
parent ca3dfcdf17
commit 660ec5bc60

View file

@ -37,6 +37,8 @@ jobs:
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern={{major}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
flavor: |
latest=${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Build image
id: build
uses: docker/build-push-action@v6