proper semver latest tagging
This commit is contained in:
7
.github/workflows/docker-build.yml
vendored
7
.github/workflows/docker-build.yml
vendored
@@ -33,12 +33,17 @@ jobs:
|
|||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: cooldockerizer93/spotizerr
|
images: cooldockerizer93/spotizerr
|
||||||
|
# Set latest tag to follow semantic versioning
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
|
# Set 'latest' tag for the most recent semver tag (following proper semver ordering)
|
||||||
|
type=semver,pattern=latest,priority=1000
|
||||||
|
# Keep dev tag for main/master branch
|
||||||
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
|
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
# Build and push Docker image with multiarch support
|
# Build and push Docker image with multiarch support
|
||||||
|
|||||||
Reference in New Issue
Block a user