[openwrt/openwrt] CI: push-containers: limit to one concurrent run

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 24 14:26:19 PST 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d5943ffed8e18e94ff71f0f1842b5137b5b795ed

commit d5943ffed8e18e94ff71f0f1842b5137b5b795ed
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Tue Jan 24 23:23:56 2023 +0100

    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 <ansuelsmth at gmail.com>
---
 .github/workflows/push-containers.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/push-containers.yml b/.github/workflows/push-containers.yml
index 4045dfaa29..cc13cda572 100644
--- a/.github/workflows/push-containers.yml
+++ b/.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




More information about the lede-commits mailing list