1
0
Fork 0
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:
Prateek Pandey 2022-11-23 18:59:57 +05:30 committed by GitHub
parent 25a10e7cd9
commit 48ebe0f4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -5,6 +5,10 @@ on:
- 'main'
- 'release*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-conformance:
runs-on: ubuntu-latest

View file

@ -18,6 +18,10 @@ on:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-test:
strategy:

View file

@ -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

View file

@ -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