diff --git a/.github/workflows/build_and_push_images.yml b/.github/workflows/build_and_push_images.yml index fc63140..bfc8b19 100644 --- a/.github/workflows/build_and_push_images.yml +++ b/.github/workflows/build_and_push_images.yml @@ -2,17 +2,19 @@ name: Build and push images on: workflow_dispatch: - push: - branches: - - master + workflow_run: + workflows: ["Benchmark"] + types: + - completed concurrency: group: ${{ github.workflow }}-${{ github.sha }} cancel-in-progress: true jobs: - build-and-push-base-and-bench-images: + build-base-and-bench-images: name: Build and push base and bench images + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 60 env: @@ -69,7 +71,7 @@ jobs: name: Build app images runs-on: ubuntu-latest timeout-minutes: 60 - needs: build-and-push-base-and-bench-images + needs: build-base-and-bench-images strategy: fail-fast: false matrix: