Use semver for docker versioning

This commit is contained in:
Gabriele De Rosa 2021-10-17 13:10:37 +02:00
parent e34b4f6e82
commit 3bebcba5fc
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ jobs:
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action