From cfda6a1482f325e00eef16ea0706a6249450f427 Mon Sep 17 00:00:00 2001 From: bobslept <38557801+bobslept@users.noreply.github.com> Date: Sun, 5 Nov 2023 17:08:47 +0100 Subject: [PATCH] chore(ci): improve queue by canceling jobs (#641) --- .github/workflows/build-fedora-toolbox.yml | 4 ++++ .github/workflows/build-ubuntu-toolbox.yml | 4 ++++ .github/workflows/build-wolfi-toolbox.yml | 4 ++++ .github/workflows/build.yml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/build-fedora-toolbox.yml b/.github/workflows/build-fedora-toolbox.yml index 01ac3bd28e0..f2dcfec4610 100644 --- a/.github/workflows/build-fedora-toolbox.yml +++ b/.github/workflows/build-fedora-toolbox.yml @@ -10,6 +10,10 @@ env: IMAGE_TAGS: latest IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: push-ghcr: name: Build and push image diff --git a/.github/workflows/build-ubuntu-toolbox.yml b/.github/workflows/build-ubuntu-toolbox.yml index eb6428bee22..d0af8a3ed16 100644 --- a/.github/workflows/build-ubuntu-toolbox.yml +++ b/.github/workflows/build-ubuntu-toolbox.yml @@ -10,6 +10,10 @@ env: IMAGE_TAGS: latest IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: push-ghcr: name: Build and push image diff --git a/.github/workflows/build-wolfi-toolbox.yml b/.github/workflows/build-wolfi-toolbox.yml index 6ec57b90873..11baa6b9878 100644 --- a/.github/workflows/build-wolfi-toolbox.yml +++ b/.github/workflows/build-wolfi-toolbox.yml @@ -10,6 +10,10 @@ env: IMAGE_TAGS: latest IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: push-ghcr: name: Build and push image diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54c5c3055ce..ee935c4b5be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,10 @@ on: env: IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: push-ghcr: name: Make