gitlab CI: fetch the WAYLAND_WEB_TOKEN from a file
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Aug 2019 03:42:36 +0000 (13:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Aug 2019 03:43:31 +0000 (13:43 +1000)
This way it can't leak into the meson testlog.txt during the other stages.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml

index d66644b..777a518 100644 (file)
@@ -510,8 +510,12 @@ wayland-web:
   image: $BUILDAH_IMAGE
   stage: deploy
   script:
+    # Requirements:
+    # - variable WAYLAND_WEB_TOKEN defined as type File in libinput's CI/CD settings
+    # - content of that file is the token value, as generated by the Pipeline Triggers
+    #   of the wayland.freedesktop.org project.
     - curl --request POST
-           --form "token=$WAYLAND_WEB_TOKEN"
+           --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: