summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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