From 5527df299c2d5ce95f50803b452e0a9c5391825c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Rodri=CC=81guez?= Date: Wed, 8 Mar 2023 12:30:40 +0100 Subject: [PATCH] Use tags for tagging the docker image --- .github/workflows/docker-images.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 3ce9ee0..5842550 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -50,11 +50,11 @@ jobs: tags: | type=ref,event=branch type=ref,event=pr + type=ref,event=tag type=semver,pattern=v{{version}} type=semver,pattern=v{{major}}.{{minor}} type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }} - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} - type=raw,,value={{branch}}-{{sha}} + type=raw,value={{branch}}-{{sha}},enable=${{ !startsWith(github.ref, 'refs/tags/') }} - name: Build image uses: docker/build-push-action@v3