Skip to content

Commit

Permalink
ci: fail-fast input for build workflows
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Aug 5, 2023
1 parent 52292d6 commit f656f7d
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
needs:
- prepare
strategy:
fail-fast: false
fail-fast: ${{ inputs.fail-fast }}
matrix:
pkg: ${{ fromJson(needs.prepare.outputs.matrix) }}
steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-credential-helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-docker-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-docker-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f656f7d

Please sign in to comment.