forked from mirror/BlueMap
Improve Docker image tags (#337)
This commit is contained in:
parent
e8f8317d52
commit
bfbebbcd51
5
.github/workflows/gradle.yml
vendored
5
.github/workflows/gradle.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user