You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:46:47 UTC

[buildstream] 03/04: WIP: Add artifact cache configuration

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch tlater/freedocstop-sdk
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit b48c6f001b03e006f9b49502d8e952dcb4ae8bad
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Fri May 17 17:33:19 2019 +0100

    WIP: Add artifact cache configuration
---
 doc/Makefile         | 11 +++++++++++
 doc/buildstream.conf |  8 ++++++++
 2 files changed, 19 insertions(+)

diff --git a/doc/Makefile b/doc/Makefile
index f4e8b20..2c22d58 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 0000000..3c5a05f
--- /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