[gnome-runtime-images/alatiera/scheduled-stable-rebuilds: 3/4] avoid rebuilding stable releases unless on scheduled pipelines



commit c1ca9646fab1530b86488992e20f3ae46a77bf16
Author: Jordan Petridis <jpetridis gnome org>
Date:   Thu Apr 23 11:50:33 2020 +0300

    avoid rebuilding stable releases unless on scheduled pipelines
    
    Require an env var to trigger the build automatically,
    which we are only going to set in a scheduled pipeline

 .gitlab-ci.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 41a817b..a254519 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -65,6 +65,7 @@ flat-manager-client:
 # Expects ${BRANCH} and ${FD_BRANCH} variables which are the gnome branch and the freedesktop-sdk
 # branch it is based on
 .sdk_template:
+    needs: []
     script:
         # build the flatpak sdk image
         - |
@@ -99,6 +100,12 @@ gnome:master:
     variables:
         BRANCH: master
         FD_BRANCH: "19.08"
+    rules:
+      - if: "$CI_MERGE_REQUEST_ID"
+        when: 'always'
+      - if: "$CI_COMMIT_BRANCH == 'master'"
+        when: 'always'
+      - when: 'manual'
 
 gnome:3.32:
     stage: runtimes
@@ -106,6 +113,10 @@ gnome:3.32:
     variables:
         BRANCH: "3.32"
         FD_BRANCH: "18.08"
+    rules:
+      - if: '$REBUILD_3_32'
+        when: 'always'
+      - when: 'manual'
 
 gnome:3.34:
     stage: runtimes
@@ -113,6 +124,10 @@ gnome:3.34:
     variables:
         BRANCH: "3.34"
         FD_BRANCH: "19.08"
+    rules:
+      - if: '$REBUILD_3_34'
+        when: 'always'
+      - when: 'manual'
 
 gnome:3.36:
     stage: runtimes
@@ -120,3 +135,7 @@ gnome:3.36:
     variables:
         BRANCH: "3.36"
         FD_BRANCH: "19.08"
+    rules:
+      - if: '$REBUILD_3_36'
+        when: 'always'
+      - when: 'manual'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]