Skip to content

Commit

Permalink
explicitly set prefix for each tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Nov 24, 2023
1 parent 2472877 commit caf1426
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +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=semver,pattern={{raw}},prefix=${{ matrix.target == 'test' && 'test' || '' }}
type=semver,pattern={{major}},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
Expand Down

0 comments on commit caf1426

Please sign in to comment.