From 13fc448a23cb1fae291f7d96363c45cb3d22e53e Mon Sep 17 00:00:00 2001 From: Javier Martinez Date: Thu, 18 Jul 2024 12:45:20 +0200 Subject: [PATCH] Revert "..." This reverts commit cf9bd3939ca98ba7aed6b46c462199f77e0bbb5a. --- .github/workflows/generate-release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/generate-release.yml b/.github/workflows/generate-release.yml index 30ff6cfe..c43986c8 100644 --- a/.github/workflows/generate-release.yml +++ b/.github/workflows/generate-release.yml @@ -44,19 +44,18 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: HackerHappyHour/tagging-strategy@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | + {{ if eq ${{matrix.type}} "external" }}latest{{ end }} + {{ if eq ${{matrix.type}} "external" }}type=semver,pattern={{version}}{{ end }} type=semver,pattern={{version}}-${{ matrix.type }} + {{ if eq ${{matrix.type}} "external" }}type=semver,pattern={{major}}.{{minor}}{{ end }} type=semver,pattern={{major}}.{{minor}}-${{ matrix.type }} + {{ if eq ${{matrix.type}} "external" }}type=semver,pattern={{major}}{{ end }} type=semver,pattern={{major}}-${{ matrix.type }} type=sha - extra-tags: | - type=semver,pattern={{version}}::${{ matrix.type == 'external'}} - type=semver,pattern={{major}}.{{minor}}::${{ matrix.type == 'external'}} - type=semver,pattern={{major}}::${{ matrix.type == 'external'}} - - name: Build and push Docker image