From d325cf9ceb7b7d1e7cf6c86a4e2ff2ca2fe18add Mon Sep 17 00:00:00 2001 From: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com> Date: Mon, 15 May 2023 17:34:27 +0200 Subject: [PATCH] fix workflow --- .github/workflows/build.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 953b72d6..bbae9879 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,9 +20,7 @@ on: branches: - 'main' -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true + jobs: start-runner: @@ -61,6 +59,9 @@ jobs: ] build-and-push-image: + concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true needs: start-runner # required to start the main job when the runner is ready runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner permissions: @@ -70,8 +71,6 @@ jobs: # with sigstore/fulcio when running outside of PRs. id-token: write security-events: write - outputs: - image: steps: - name: Checkout repository uses: actions/checkout@v3 @@ -187,6 +186,9 @@ jobs: sarif_file: 'trivy-results.sarif' integration-tests: + concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true needs: - start-runner - build-and-push-image # Wait for the docker image to be built