[gimp] gitlab-ci: create a GIMP_CI_FLATPAK Gitlab variable to trigger the…



commit 434ef403fb5cf2510d5bbd6beef9b7c728812469
Author: Jehan <jehan girinstud io>
Date:   Wed May 26 19:35:19 2021 +0200

    gitlab-ci: create a GIMP_CI_FLATPAK Gitlab variable to trigger the…
    
    … flatpak build and publishing.
    
    Same as we are doing for other build pipelines. This allows finer manual
    builds (not just "on schedules").

 .gitlab-ci.yml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 54782478d0..f0921e8541 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,7 @@
 # - Win32 crossbuilds (rare usefulness)
 # - Linux CLang (rare usefulness)
 # - cppcheck (static code analysis)
-# - Flatpak build
+# - Flatpak build (slow and doesn't need constant publishing)
 # Releases ($CI_COMMIT_TAG != null) should run only:
 # - Linux autotools (distcheck source tarball)
 # - Win 32/64 native builds (Windows installer creation)
@@ -23,6 +23,7 @@
 # - GIMP_CI_WIN_INSTALLER: trigger both native MSYS2 builds then creates Windows installer.
 # - GIMP_CI_SOURCES: trigger the autotools/gcc build and the source tarball job.
 # - GIMP_CI_CPPCHECK: trigger cppcheck static analysis.
+# - GIMP_CI_FLATPAK: trigger the nightly flatpak build and publishing.
 
 include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
 
@@ -552,8 +553,9 @@ flatpak:
   stage: gimp
   needs: []
   when: always
-  only:
-    - schedules
+  rules:
+    # Custom builds though web GUI, API or schedules.
+    - if: '$GIMP_CI_FLATPAK != null'
   variables:
     GIT_SUBMODULE_STRATEGY: normal
 
@@ -809,8 +811,9 @@ win32-nightly:
 flatpak-nightly:
   extends: '.publish_nightly'
   stage: distribution
-  only:
-    - schedules
+  rules:
+    # Custom builds though web GUI, API or schedules.
+    - if: '$GIMP_CI_FLATPAK != null'
   needs: ["flatpak"]
   dependencies:
     - 'flatpak'


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