[gnome-todo/alatiera/ci-bundle-delivery] CI: Deploy the flatpak bundle with review apps
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/alatiera/ci-bundle-delivery] CI: Deploy the flatpak bundle with review apps
- Date: Wed, 1 Aug 2018 15:18:34 +0000 (UTC)
commit 39ecebb2a24402d974daa60054fc44044be96307
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Wed Aug 1 15:17:53 2018 +0000
CI: Deploy the flatpak bundle with review apps
For more info:
https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak#flatpak-bundle-for-every-mr-and-commit
.gitlab-ci.yml | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f315826..eb59e6b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,6 +11,9 @@ stages:
- flatpak
- build
+variables:
+ DEVELOPMENT_FLATPAK_ID: "TodoDevel"
+
##################
# Fedora Rawhide #
@@ -61,8 +64,6 @@ ubuntu:devel:
flatpak:master:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.28
stage: flatpak
- variables:
- DEVELOPMENT_FLATPAK_ID: "TodoDevel"
script:
# Print debug information
@@ -82,3 +83,27 @@ flatpak:master:
cache:
paths:
- .flatpak-builder/cache
+
+review:
+ stage: review
+ dependencies:
+ - flatpak:master
+ script:
+ - echo "Generating flatpak deployment"
+ artifacts:
+ paths:
+ - org.gnome.$DEVELOPMENT_FLATPAK_ID.flatpak
+ expire_in: 30 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
+
+stop_review:
+ stage: review
+ script:
+ - echo "Stopping flatpak deployment"
+ when: manual
+ environment:
+ name: review/$CI_COMMIT_REF_NAME
+ action: stop
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]