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").
This commit is contained in:
Jehan 2021-05-26 19:35:19 +02:00
parent 83f5698fe2
commit 434ef403fb
1 changed files with 8 additions and 5 deletions

View File

@ -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'