Skip to content

Commit

Permalink
Fix main branch detection for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Nov 20, 2023
1 parent 8d78e6f commit ce018cb
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.ref == 'refs/heads/main' && github.sha || 'false' }}
cancel-in-progress: true
jobs:
docker:
Expand Down Expand Up @@ -78,7 +78,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.ref == 'refs/heads/main' && true || false }}
tags: ${{ steps.meta.outputs.tags }}
# Cache options:
# https://docs.docker.com/build/ci/github-actions/cache/
Expand Down

0 comments on commit ce018cb

Please sign in to comment.