Skip to content

Commit

Permalink
Cancel running builds
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Nov 24, 2023
1 parent d347fce commit 8fd5e81
Show file tree
Hide file tree
Showing 30 changed files with 60 additions and 150 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/.container.template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: <{ repository_path }>-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: <{ repository_path }>-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/almalinux-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/almalinux-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/almalinux-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/amazonlinux-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/amazonlinux-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/amazonlinux-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/archlinux-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/archlinux-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/archlinux-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/busybox-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/busybox-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/busybox-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/centos-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/centos-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/centos-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/centos-stream-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/centos-stream-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/centos-stream-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/consul-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/consul-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/consul-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/debian-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/debian-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/debian-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/etcd-v2-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/etcd-v2-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/etcd-v2-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/etcd-v3-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/etcd-v3-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/etcd-v3-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/fedora-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/fedora-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/fedora-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/mariadb-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/mariadb-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/mariadb-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/mysql-server-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/mysql-server-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/mysql-server-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/openldap-minion-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: custom/openldap-minion-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: custom/openldap-minion-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/opensuse-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/opensuse-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/opensuse-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/packaging-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: custom/packaging-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: custom/packaging-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/percona-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/percona-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/percona-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/photon-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/photon-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/photon-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/python-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/python-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/python-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/rabbitmq-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/rabbitmq-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/rabbitmq-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/redis-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/redis-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/redis-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/salt-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: salt-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: salt-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/salt-gitfs-http-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: custom/salt-gitfs-http-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: custom/salt-gitfs-http-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/ssh-minion-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: custom/ssh-minion-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: custom/ssh-minion-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tinyproxy-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/tinyproxy-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/tinyproxy-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/ubuntu-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/ubuntu-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/ubuntu-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/vault-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ env:


concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
# not cancel previous builds.
# However, for every new build against the same pull request source branch,
# all older builds against that same branch get canceled.
group: mirrors/vault-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
# New builds always cancel previous, still running, builds
group: mirrors/vault-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
Loading

0 comments on commit 8fd5e81

Please sign in to comment.