From c32bfe0b8168c3555d41b2d229154dec55400e89 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Mon, 20 Nov 2023 12:26:51 +0100 Subject: [PATCH] publish docker in all non-PR events --- .github/workflows/build-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 71d46fabd0..a43916be6b 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -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: @@ -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/