[nautilus] gitlabci: Add stop_review job.
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] gitlabci: Add stop_review job.
- Date: Wed, 9 May 2018 11:21:32 +0000 (UTC)
commit c2efeabf1878775cb41e3579e596d64c4dc7aca9
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Sun May 6 20:25:32 2018 +0300
gitlabci: Add stop_review job.
Split the enviroment deployment from the flatpak job.
review job depends on the flatpak job, and re-exports its
artifacts for now. Then it creates a review app, that shows
a link to the flatpak bundle.
This commit also restricts enviroment deployments for the master
branch of GNOME/nautilus.
.gitlab-ci.yml | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4bf365bf5..2f0edab88 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,11 @@
variables:
GIT_SUBMODULE_STRATEGY: normal
+ BUNDLE: "nautilus-dev.flatpak"
stages:
- test
- cross_distro
+ - deploy
.test_template: &distro_test
script:
@@ -18,7 +20,6 @@ flatpak:
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.json"
MESON_ARGS: "-Dprofile=development -Dtests=all"
FLATPAK_MODULE: "nautilus"
- BUNDLE: "nautilus-dev.flatpak"
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
DBUS_ID: "org.gnome.NautilusDevel"
@@ -42,9 +43,34 @@ flatpak:
cache:
paths:
- .flatpak-builder/cache
+
+review:
+ stage: deploy
+ dependencies:
+ - flatpak
+ script:
+ - echo "Generating flatpak deployment"
+ artifacts:
+ paths:
+ - ${BUNDLE}
+ expire_in: 2 days
environment:
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:
+ - master@GNOME/nautilus
+
+stop_review:
+ stage: deploy
+ script:
+ - echo "Stopping flatpak deployment"
+ when: manual
+ environment:
+ name: review/$CI_COMMIT_REF_NAME
+ action: stop
+ except:
+ - master@GNOME/nautilus
fedora:rawhide:
image: fedora:rawhide
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]