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



commit 23a07310e3d399d122f8f8dbd6d9ffa10da5fbc7
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 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a42ba08..f246d7c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,6 +77,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
         - |
@@ -111,6 +112,8 @@ gnome:master:
     variables:
         BRANCH: master
         FD_BRANCH: "19.08"
+    rules:
+      - when: 'always'
 
 gnome:3.32:
     stage: runtimes
@@ -118,6 +121,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
@@ -125,6 +132,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
@@ -132,3 +143,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]