Skip to content

Commit

Permalink
publish docker in all non-PR events
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Nov 20, 2023
1 parent 46e9067 commit c32bfe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- ".github/workflows/build-docker.yml"
- "docker/centrifuge-chain/Dockerfile"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}${{ github.ref == 'refs/heads/main' && github.sha || 'false' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}${{ github.event_name }}
cancel-in-progress: true
jobs:
docker:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
file: ./docker/centrifuge-chain/Dockerfile
build-args: |
FEATURES=${{ matrix.target == 'test' && 'fast-runtime' || '' }}
push: ${{ github.ref == 'refs/heads/main' && true || false }}
push: ${{ github.event_name == 'pull_request' && false || true }}
tags: ${{ steps.meta.outputs.tags }}
# Cache options:
# https://docs.docker.com/build/ci/github-actions/cache/
Expand Down

0 comments on commit c32bfe0

Please sign in to comment.