summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-09-26 16:36:57 +0100
committerTiago Gomes <tiago.gomes@codethink.co.uk>2018-09-26 16:54:53 +0100
commit9280b0cfb771c876b4a3edf0e80b619ad2c71306 (patch)
treeeef03337f970b4487cc460a26b61004433791564
parentfdbf9be1ecf04fbc56c085a5f0a1633a06f61805 (diff)
downloadbuildstream-9280b0cfb771c876b4a3edf0e80b619ad2c71306.tar.gz
ci: add ACME challenge
To finish the creation of the Let's Encrypt certificate, which will allows us to use https://docs.buildstream.build/ for accessing the documentation.
-rw-r--r--.gitlab-ci.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e56590556..fcab72c7a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -273,8 +273,14 @@ pages:
dependencies:
- source_dist
- docs
+ variables:
+ ACME_DIR: public/.well-known/acme-challenge
script:
- - find public/
+ - mkdir ${ACME_DIR}
+ # Required to finish the creation of the Let's Encrypt certificate,
+ # which allows using https://docs.buildstream.build/ for accessing
+ # the documentation.
+ - echo ${ACME_CHALLENGE} > ${ACME_DIR}/$(echo ${ACME_CHALLENGE} | cut -c1-43)
artifacts:
paths:
- public/