All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] automation: avoid duplicated builds of staging branch
@ 2023-07-17 13:09 Marek Marczykowski-Górecki
  2023-07-17 13:14 ` Andrew Cooper
  0 siblings, 1 reply; 12+ messages in thread
From: Marek Marczykowski-Górecki @ 2023-07-17 13:09 UTC (permalink / raw)
  To: xen-devel
  Cc: Marek Marczykowski-Górecki, Doug Goldstein,
	Stefano Stabellini

"staging" branch is mirrored (automatically or manually) to several
repositories. Avoid building it several times to not waste runner
resources.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
 .gitlab-ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c8bd7519d5fb..c3b05e32636b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,12 @@ stages:
   - build
   - test
 
+workflow:
+  rules:
+    - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE != "xen-project"'
+      when: never
+    - when: always
+
 include:
   - 'automation/gitlab-ci/build.yaml'
   - 'automation/gitlab-ci/test.yaml'
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-24 20:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-17 13:09 [PATCH] automation: avoid duplicated builds of staging branch Marek Marczykowski-Górecki
2023-07-17 13:14 ` Andrew Cooper
2023-07-17 14:08   ` Marek Marczykowski-Górecki
2023-07-21 23:42     ` Stefano Stabellini
2023-07-22  0:07       ` Marek Marczykowski-Górecki
2023-07-22  0:14         ` Stefano Stabellini
2023-07-22  0:24           ` Marek Marczykowski-Górecki
2023-07-22  0:49             ` Stefano Stabellini
2023-07-22  1:00               ` Marek Marczykowski-Górecki
2023-07-22  1:18                 ` Stefano Stabellini
2023-07-24  8:27                   ` Oleksii
2023-07-24 20:58                     ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.