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 f4ded09
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4ded09

Please sign in to comment.