From 70ae63d83ed0f49454cd64b8686d946b316501d7 Mon Sep 17 00:00:00 2001 From: Maaike Date: Tue, 14 Jan 2025 12:30:31 +0100 Subject: [PATCH] create new image with tag matching release --- .github/workflows/containers.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 29bd4df4..ce84e06a 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -65,8 +65,8 @@ jobs: ${{ env.DOCKER_ORG }}/${{ matrix.image }} ghcr.io/${{ github.repository_owner }}/${{ matrix.image }} tags: | - type=raw,value=latest,enable={{is_default_branch}} - type=pep440,pattern={{version}} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }} - name: Build and push uses: docker/build-push-action@v2.7.0