From f656f7dfdd93bde1eba57a1ef45088eaba858861 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 5 Aug 2023 12:24:43 +0200 Subject: [PATCH] ci: fail-fast input for build workflows Signed-off-by: CrazyMax --- .github/workflows/.build.yml | 2 +- .github/workflows/build-buildx.yml | 5 +++++ .github/workflows/build-compose.yml | 5 +++++ .github/workflows/build-containerd.yml | 5 +++++ .github/workflows/build-credential-helpers.yml | 5 +++++ .github/workflows/build-docker-cli.yml | 5 +++++ .github/workflows/build-docker-engine.yml | 5 +++++ .github/workflows/build-sbom.yml | 5 +++++ .github/workflows/build-scan.yml | 5 +++++ .github/workflows/manual-build.yml | 4 ++++ 10 files changed, 45 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.build.yml b/.github/workflows/.build.yml index cdc526c3..c3f20ffa 100644 --- a/.github/workflows/.build.yml +++ b/.github/workflows/.build.yml @@ -44,7 +44,7 @@ jobs: needs: - prepare strategy: - fail-fast: false + fail-fast: ${{ inputs.fail-fast }} matrix: pkg: ${{ fromJson(needs.prepare.outputs.matrix) }} steps: diff --git a/.github/workflows/build-buildx.yml b/.github/workflows/build-buildx.yml index 55b1c602..f5f171e3 100644 --- a/.github/workflows/build-buildx.yml +++ b/.github/workflows/build-buildx.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-compose.yml b/.github/workflows/build-compose.yml index 5e631578..913c0260 100644 --- a/.github/workflows/build-compose.yml +++ b/.github/workflows/build-compose.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-containerd.yml b/.github/workflows/build-containerd.yml index b2503a23..638ae81f 100644 --- a/.github/workflows/build-containerd.yml +++ b/.github/workflows/build-containerd.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-credential-helpers.yml b/.github/workflows/build-credential-helpers.yml index c70f4318..53492faf 100644 --- a/.github/workflows/build-credential-helpers.yml +++ b/.github/workflows/build-credential-helpers.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-docker-cli.yml b/.github/workflows/build-docker-cli.yml index 664845c5..e10f0b1e 100644 --- a/.github/workflows/build-docker-cli.yml +++ b/.github/workflows/build-docker-cli.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-docker-engine.yml b/.github/workflows/build-docker-engine.yml index 1f0f3b64..fe105c19 100644 --- a/.github/workflows/build-docker-engine.yml +++ b/.github/workflows/build-docker-engine.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-sbom.yml b/.github/workflows/build-sbom.yml index 04d39ea2..f5060c1c 100644 --- a/.github/workflows/build-sbom.yml +++ b/.github/workflows/build-sbom.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/build-scan.yml b/.github/workflows/build-scan.yml index 06e9fe21..af7dfe3a 100644 --- a/.github/workflows/build-scan.yml +++ b/.github/workflows/build-scan.yml @@ -12,6 +12,11 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + default: true + required: false + type: boolean push: branches: - 'main' diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index 6a47a161..42c64930 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -17,6 +17,10 @@ on: default: 'minimal' required: false type: string + fail-fast: + description: 'Cancel all in-progress and queued jobs in the matrix if any job in the matrix fails' + required: false + type: boolean jobs: prepare: