Skip to content

Commit

Permalink
Merge pull request #140 from crazy-max/ci-failfast-opt
Browse files Browse the repository at this point in the history
ci: fail-fast input for build workflows
  • Loading branch information
crazy-max committed Aug 5, 2023
2 parents 52292d6 + 6bbae55 commit 1667d56
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 || true }}
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 1667d56

Please sign in to comment.