summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jpetridis@gnome.org>2020-11-13 20:00:17 +0200
committerJordan Petridis <jpetridis@gnome.org>2020-11-13 20:38:09 +0200
commitfe690265eba066efae3fdb4d536b325ea3d8334c (patch)
tree8802ae338246c0b1e41a2f47bb83f698dc199270
parentbdc28cd870aececbc87cf6ecc1c8b45caab64336 (diff)
downloadgtk+-fe690265eba066efae3fdb4d536b325ea3d8334c.tar.gz
ci: publish demo apps to the Nightly repository
-rw-r--r--.gitlab-ci.yml23
-rw-r--r--.gitlab-ci/flatpak-build.sh5
2 files changed, 28 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5607e2e1aa..18565b2913 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,7 @@
+include:
+ - project: 'gnome/citemplates'
+ file: 'flatpak/flatpak_ci_initiative.yml'
+
stages:
- build
- analysis
@@ -149,6 +153,7 @@ msys2-mingw64:
artifacts:
paths:
- "${APPID}-dev.flatpak"
+ - 'repo.tar'
expire_in: 1 day
script:
- bash -x ./.gitlab-ci/flatpak-build.sh "${APPID}"
@@ -200,6 +205,24 @@ flatpak-master:icon-browser:
variables:
APPID: org.gtk.IconBrowser4
+# Publish the demo apps to the GNOME Nightly repo
+# https://wiki.gnome.org/Apps/Nightly
+# https://gitlab.gnome.org/GNOME/Initiatives/-/wikis/DevOps-with-Flatpak
+nightly demo:
+ extends: '.publish_nightly'
+ dependencies: ['flatpak-master:demo']
+ needs: ['flatpak-master:demo']
+
+nightly factory:
+ extends: '.publish_nightly'
+ dependencies: ['flatpak-master:widget-factory']
+ needs: ['flatpak-master:widget-factory']
+
+nightly icon-browser:
+ extends: '.publish_nightly'
+ dependencies: ['flatpak-master:icon-browser']
+ needs: ['flatpak-master:icon-browser']
+
static-scan:
image: $FEDORA_IMAGE
stage: analysis
diff --git a/.gitlab-ci/flatpak-build.sh b/.gitlab-ci/flatpak-build.sh
index 531741db1d..72397cc7ea 100644
--- a/.gitlab-ci/flatpak-build.sh
+++ b/.gitlab-ci/flatpak-build.sh
@@ -40,3 +40,8 @@ flatpak build-bundle \
${appid}-dev.flatpak \
--runtime-repo=https://nightly.gnome.org/gnome-nightly.flatpakrepo \
${appid}
+
+# to be consumed by the nightly publish jobs
+if [[ $CI_COMMIT_BRANCH == master ]]; then
+ tar cf repo.tar ${repodir}
+fi