Răsfoiți Sursa

CI: push-containers: limit to one concurrent run

We may find in a situation where due the queue an old run finish after
the last run, resulting in the containers getting overwritten with an
old version.

Limit the push-containers workflow to one concurrent run and cancel any
run in progress.

Signed-off-by: Christian Marangi <[email protected]>
Christian Marangi 2 ani în urmă
părinte
comite
d5943ffed8
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      .github/workflows/push-containers.yml

+ 4 - 0
.github/workflows/push-containers.yml

@@ -11,6 +11,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}
+  cancel-in-progress: true
+
 jobs:
   build-linux-buildbot:
     name: Build tools with buildbot container