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



commit 071ecf3f4befbcd01fb899aee92962119372db23
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 | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a42ba08..e3ff072 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -54,9 +54,7 @@ base:
         DOCKERIMAGE: ${CI_REGISTRY_IMAGE}/base
         DOCKERFILE: base
     rules:
-      - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME'
-        changes:
-          - 'base'
+      - if: '$CI_MERGE_REQUEST_ID'
         when: 'always'
       - when: 'manual'
 
@@ -67,9 +65,7 @@ flat-manager-client:
         DOCKERIMAGE: ${CI_REGISTRY_IMAGE}/flat-manager-client
         DOCKERFILE: flat-manager-client/Dockerfile
     rules:
-      - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME'
-        changes:
-          - 'flat-manager-client/Dockerfile'
+      - if: '$CI_MERGE_REQUEST_ID'
         when: 'always'
       - when: 'manual'
 
@@ -77,6 +73,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 +108,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
@@ -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]