chore(ci): add proper concurrency groups for master and release CI.

Renamed `dev.yaml` to `master.yaml`.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2023-04-17 18:06:15 +02:00 committed by poiana
parent b138e4c9e1
commit 6bf6a34a59
3 changed files with 13 additions and 4 deletions

View File

@ -7,7 +7,7 @@ on:
workflow_dispatch:
# Checks if any concurrent jobs under the same pull request or branch are being executed
# NOTE: this will cancel every workflow that is being ran as group is just the github ref (without the workflow name)
# NOTE: this will cancel every workflow that is being ran against a PR as group is just the github ref (without the workflow name)
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

View File

@ -1,8 +1,12 @@
name: Dev Packages
name: Dev Packages and Docker images
on:
push:
branches: [master]
workflow_dispatch:
# Checks if any concurrent jobs under the same pull request or branch are being executed
concurrency:
group: ci-master
cancel-in-progress: true
jobs:
build-dev-packages:

View File

@ -1,9 +1,14 @@
name: Release Packages
name: Release Packages and Docker images
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
# Checks if any concurrent jobs under the same pull request or branch are being executed
concurrency:
group: ci-release
cancel-in-progress: true
jobs:
build-packages:
uses: falcosecurity/falco/.github/workflows/reusable_build_packages.yaml@main