mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
ci: cancel redundant builds of workflow on push (#5427)
Use concurrency to ensure that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com> Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com>
This commit is contained in:
parent
25a10e7cd9
commit
48ebe0f4c6
4 changed files with 16 additions and 0 deletions
4
.github/workflows/conformance.yaml
vendored
4
.github/workflows/conformance.yaml
vendored
|
@ -5,6 +5,10 @@ on:
|
|||
- 'main'
|
||||
- 'release*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
run-conformance:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
4
.github/workflows/e2e.yaml
vendored
4
.github/workflows/e2e.yaml
vendored
|
@ -18,6 +18,10 @@ on:
|
|||
|
||||
permissions: read-all
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
e2e-test:
|
||||
strategy:
|
||||
|
|
4
.github/workflows/image-build.yaml
vendored
4
.github/workflows/image-build.yaml
vendored
|
@ -10,6 +10,10 @@ permissions:
|
|||
packages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
pre-checks:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
4
.github/workflows/image.yaml
vendored
4
.github/workflows/image.yaml
vendored
|
@ -10,6 +10,10 @@ permissions:
|
|||
packages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
push-init-kyverno:
|
||||
uses: ./.github/workflows/reuse.yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue