summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2019-05-17 17:33:19 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2019-06-12 13:54:49 +0100
commitb48c6f001b03e006f9b49502d8e952dcb4ae8bad (patch)
treeab5756b2b6b30a9710091e27383e0d408f7df07f
parent9b6c1628dd14adeadd8e34624f5db74e959c60f4 (diff)
downloadbuildstream-b48c6f001b03e006f9b49502d8e952dcb4ae8bad.tar.gz
WIP: Add artifact cache configuration
-rw-r--r--doc/Makefile11
-rw-r--r--doc/buildstream.conf8
2 files changed, 19 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
index f4e8b20b9..2c22d58a1 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -102,10 +102,21 @@ templates-clean:
# messes up the docs version number and the version number
# printed in some command line output.
#
+# For builds on the gitlab master branch, this will also configure
+# buildstream to push to the artifact server.
+#
sessions-prep:
+
mkdir -p source/sessions
cp source/sessions-stored/*.html source/sessions
+ifeq($(CI_COMMIT_REF_NAME),tlater/freedocstop-sdk)
+ $(file >$(HOME)/client.key,$(TUTORIAL_CACHE_CLIENT_KEY))
+ $(file >$(HOME)/client.crt,$(TUTORIAL_CACHE_CLIENT_CERTIFICATE))
+ $(file >$(HOME)/server.crt,$(TUTORIAL_CACHE_SERVER_CERTIFICATE))
+ cp ./buildstream.conf "$(HOME)/.config/"
+endif
+
# By default, this will generate the html fragments of colorized BuildStream terminal
# output only if they don't yet exist.
#
diff --git a/doc/buildstream.conf b/doc/buildstream.conf
new file mode 100644
index 000000000..3c5a05f9b
--- /dev/null
+++ b/doc/buildstream.conf
@@ -0,0 +1,8 @@
+projects:
+ freedesktop-sdk:
+ artifacts:
+ - url: https://${TUTORIAL_CACHE_SERVER_IP}:${TUTORIAL_CACHE_SERVER_PORT}/
+ client-key: ${HOME}/client.key
+ client-cert: ${HOME}/client.crt
+ server-cert: ${HOME}/server.crt
+ push: true