[polari/alatiera/ci-environment-tweak: 5/5] CI: Skip enviroments for the GNOME/master branch



commit 5cff8d0441241692329b87dc129c82dadc09922a
Author: Jordan Petridis <jordanpetridis protonmail com>
Date:   Sat Aug 4 11:38:16 2018 +0300

    CI: Skip enviroments for the GNOME/master branch
    
    We use environments only so the review app can link to the generated
    flatpak bundle that corresponds to the Merge Requests.
    Gitlab environments are not useful if they are created from the
    master branch, so there is no need to do so.
    
    Note that flatpak artifacts will continue to be generated for
    the master branch. That's a separate task.
    
    
https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak#flatpak-bundle-for-every-mr-and-commit

 .gitlab-ci.yml | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 28f9ce9..0932c7d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,6 +60,10 @@ review:
         name: review/$CI_COMMIT_REF_NAME
         url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
         on_stop: stop_review
+    except:
+        - tags
+        - gnome-3-.*
+        - master@GNOME/polari
 
 stop_review:
     stage: review
@@ -69,6 +73,10 @@ stop_review:
     environment:
         name: review/$CI_COMMIT_REF_NAME
         action: stop
+    except:
+        - tags
+        - gnome-3-.*
+        - master@GNOME/polari
 
 fedora:
   image: fedora:latest


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