CI: push-containers: limit to one concurrent run
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 24 Jan 2023 22:23:56 +0000 (23:23 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 24 Jan 2023 22:23:56 +0000 (23:23 +0100)
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 <ansuelsmth@gmail.com>
.github/workflows/push-containers.yml

index 4045dfaa294241300bc09507d2707782e1b8dc1b..cc13cda5725e9be7ed424580a33a005fb7513486 100644 (file)
@@ -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