Skip to content

Commit

Permalink
fix dockertag pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 15, 2023
1 parent 3641a11 commit 98ca8f3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
docker:
strategy:
matrix:
os: [ ubuntu-latest-4-cores ]
target: [ release, test ]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest-4-cores
env:
WORKFLOW_TAG: ${{ github.event.inputs.docker_tag }}
steps:
Expand All @@ -28,6 +27,7 @@ jobs:
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
run: |
sudo rm -rf /usr/share/dotnet
# sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: check available docker space
Expand All @@ -51,15 +51,16 @@ jobs:
with:
images: centrifugeio/centrifuge-chain
flavor: |
prefix=${{ matrix.target == 'test' && 'test-' || '' }}
suffix=${{ env.NOW }}
suffix=-${{ env.NOW }}
# latest=auto is already default, but the logic needs a value at the end and '' isn't valid
${{ matrix.target == 'test' && 'prefix=test-' || 'latest=auto' }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=sha,format=short,prefix='git-'
type=edge
- name: Build and push centrifugeio/centrifuge-chain
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 98ca8f3

Please sign in to comment.