[gnome-build-meta/abderrahim/ci-improvements: 84/84] .gitlab-ci.yml: reorganize flatpak jobs
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/ci-improvements: 84/84] .gitlab-ci.yml: reorganize flatpak jobs
- Date: Sun, 13 Jan 2019 16:45:55 +0000 (UTC)
commit b569bd2eec123b7cefe211e25055618d4f1899c1
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Sun Jan 13 17:16:17 2019 +0100
.gitlab-ci.yml: reorganize flatpak jobs
- Run only on master and stable branches
- Automatic pushing of master branch can be disabled by setting the EMERGENCY variable
Fixes #102
.gitlab-ci.yml | 99 ++++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 79 insertions(+), 20 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e39079a..f1b922a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -105,23 +105,48 @@ before_script:
stage: flatpak
script:
- ${BST} -o arch "${ARCH}" build flatpak-runtimes.bst
-
- bst -o arch "${ARCH}" checkout --hardlinks flatpak-runtimes.bst repo/
# Push the resulting runtimes to gbm.gnome.org
# Assume there will be no branch name collisions,
# the ssh key is available only on protected branches
- - |
- if [ -n "$GITLAB_SSH_KEY" ]; then
- if [ "$FLATPAK_BRANCH" = master ]; then
- CONFIG_FILE=config/nightly.json
- else
- CONFIG_FILE=config/stable.json
- fi
-
- rsync -a repo/ gbm-builder.gnome.org:incoming/repo-${CI_JOB_ID}
- ssh gbm-builder.gnome.org gbm-flatpak-scripts/import-commits -c "${CONFIG_FILE}"
incoming/repo-${CI_JOB_ID}
- fi
+ - rsync -a repo/ gbm-builder.gnome.org:incoming/repo-${CI_JOB_ID}
+ - ssh gbm-builder.gnome.org gbm-flatpak-scripts/import-commits -c "${CONFIG_FILE}"
incoming/repo-${CI_JOB_ID}
+
+.flatpak-nightly-template:
+ extends: .flatpak-template
+ environment:
+ name: nightly
+ variables:
+ CONFIG_FILE: config/nightly.json
+ only:
+ refs:
+ - master
+ variables:
+ - $GITLAB_SSH_KEY
+ except:
+ variables:
+ - $EMERGENCY
+
+.flatpak-stable-template:
+ extends: .flatpak-template
+ environment:
+ name: stable
+ variables:
+ CONFIG_FILE: config/stable.json
+ only:
+ refs:
+ - /^gnome-\d-\d\d$/
+ variables:
+ - $GITLAB_SSH_KEY
+
+.flatpak-emergency-template:
+ extends: .flatpak-nightly-template
+ when: manual
+ only:
+ variables:
+ - $GITLAB_SSH_KEY
+ - $EMERGENCY
#
# Architecture specific settings
@@ -196,18 +221,52 @@ build-gnome-core-arm:
<<: *arm
-flatpak-x86_64:
- extends: .flatpak-template
+flatpak-nightly-x86_64:
+ extends: .flatpak-nightly-template
<<: *x86_64
-flatpak-i386:
- extends: .flatpak-template
+flatpak-nightly-i386:
+ extends: .flatpak-nightly-template
<<: *i686
-flatpak-aarch64:
- extends: .flatpak-template
+flatpak-nightly-aarch64:
+ extends: .flatpak-nightly-template
<<: *aarch64
-flatpak-arm:
- extends: .flatpak-template
+flatpak-nightly-arm:
+ extends: .flatpak-nightly-template
+ <<: *arm
+
+
+flatpak-stable-x86_64:
+ extends: .flatpak-stable-template
+ <<: *x86_64
+
+flatpak-stable-i386:
+ extends: .flatpak-stable-template
+ <<: *i686
+
+flatpak-stable-aarch64:
+ extends: .flatpak-stable-template
+ <<: *aarch64
+
+flatpak-stable-arm:
+ extends: .flatpak-stable-template
+ <<: *arm
+
+
+flatpak-emergency-x86_64:
+ extends: .flatpak-emergency-template
+ <<: *x86_64
+
+flatpak-emergency-i386:
+ extends: .flatpak-emergency-template
+ <<: *i686
+
+flatpak-emergency-aarch64:
+ extends: .flatpak-emergency-template
+ <<: *aarch64
+
+flatpak-emergency-arm:
+ extends: .flatpak-emergency-template
<<: *arm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]