This commit is contained in:
Lukas Rieger (Blue) 2022-09-12 12:03:53 +02:00
commit dabc8a565a
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -62,10 +62,13 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
# Always tagged as the pushed branch (ex. master)
# For releases: latest, full version and major version (ex. latest, v3.3 and v3)
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
type=raw,value={{branch}}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=match,pattern=v\d+,group=0,enable=${{ startsWith(github.ref, 'refs/tags/') }}
flavor: |
latest=false
- name: Build and push