1
1
mirror of https://github.com/derogab/ITAvsCOVIDbot synced 2024-12-28 00:11:00 +01:00

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

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