From 3bebcba5fc7cd048495ce0469ca0db43501326b5 Mon Sep 17 00:00:00 2001 From: Gabriele De Rosa Date: Sun, 17 Oct 2021 13:10:37 +0200 Subject: [PATCH] Use semver for docker versioning --- .github/workflows/docker-publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c7fc1bc..7ff2c8b 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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