summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-07-05 14:13:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-07-06 09:38:18 +1000
commit9e24e3f05e2cfc303d68bebd161b22c20f8f747e (patch)
treeae831ab474078b67875e8e6d5c0c349d9392086f
parent74694ae8f82b790d01e0572723fced011cd519a2 (diff)
Gitlab CI: trigger the wayland web rebuild on pushes to master
This requires that WAYLAND_WEB_TOKEN is set up in the libinput settings on gitlab. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--.gitlab-ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf1ecb7e..6a1a3bb8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,6 +28,7 @@ stages:
- docker_check # check if the current docker images are up to date
- docker_prep # rebuild the docker images if previous step failed
- build # for actually building things
+ - deploy # trigger wayland's website generation
variables:
###############################################################################
@@ -631,3 +632,23 @@ ubuntu:18.04@default-build:
arch:rolling@default-build:
<<: *arch_template
<<: *default_build
+
+#
+# deploy
+#
+
+wayland-web:
+ image: registry.freedesktop.org/libinput/libinput/jq:latest
+ stage: deploy
+ script:
+ - curl --request POST
+ --form "token=$WAYLAND_WEB_TOKEN"
+ --form ref=master
+ https://gitlab.freedesktop.org/api/v4/projects/wayland${SLASH}wayland${DOT}freedesktop${DOT}org/trigger/pipeline
+ only:
+ refs:
+ - master
+ dependencies:
+ variables:
+ DOT: "%2E"
+ SLASH: "%2F"