From f4ded09b112fe546359f96c1000bf5b89452948f Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Fri, 24 Nov 2023 15:04:13 +0100 Subject: [PATCH] explicitly set prefix for each tag --- .github/workflows/build-docker.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index ab4362bd44..23ce4ca7b1 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -49,15 +49,12 @@ jobs: uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 #v5 with: images: centrifugeio/centrifuge-chain - flavor: | - prefix=${{ matrix.target == 'test' && 'test' || 'latest=auto' }} tags: | - type=semver,pattern={{raw}} - type=semver,pattern={{major}} - type=edge,event=pr,suffix={{sha}}-${{ env.NOW }} - type=ref,event=tag,suffix={{sha}}-${{ env.NOW }} - type=ref,event=pr,suffix={{sha}}-${{ env.NOW }} - type=ref,event=branch,prefix=${{ matrix.target == 'test' && 'test' || '' }}-{{branch}},suffix={{sha}}-${{ env.NOW }} + type=semver,pattern={{raw}},prefix=${{ matrix.target == 'test' && 'test-' || '' }} + type=edge,event=pr,suffix={{sha}}-${{ env.NOW }},prefix=${{ matrix.target == 'test' && 'test-' || '' }} + type=ref,event=tag,suffix={{sha}}-${{ env.NOW }},prefix=${{ matrix.target == 'test' && 'test-' || '' }} + type=ref,event=pr,suffix={{sha}}-${{ env.NOW }},prefix=${{ matrix.target == 'test' && 'test-' || '' }} + type=ref,event=branch,prefix=${{ matrix.target == 'test' && 'test-' || '' }}-{{branch}},suffix={{sha}}-${{ env.NOW }} - name: Configure GHA cache uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v6