summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-09-19 17:12:51 +0200
committerlouiz’ <louiz@louiz.org>2018-09-19 17:12:51 +0200
commitbf97478b89b24bbf3a6a92c9137041cf2e987f02 (patch)
tree78c3f0a20951e6ee2b478cf2215ea93bda359372
parent6dbac489b76c1434419dcc9c240c8a1b184cd43f (diff)
downloadbiboumi-bf97478b89b24bbf3a6a92c9137041cf2e987f02.tar.gz
biboumi-bf97478b89b24bbf3a6a92c9137041cf2e987f02.tar.bz2
biboumi-bf97478b89b24bbf3a6a92c9137041cf2e987f02.tar.xz
biboumi-bf97478b89b24bbf3a6a92c9137041cf2e987f02.zip
Add a job to deploy and undeploy the doc for tagsgetdns
fix #3377
-rw-r--r--.gitlab-ci.yml36
1 files changed, 35 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a3bfd4b..ffc0c60 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -239,7 +239,7 @@ packaging:archlinux:
# Deploy jobs
#
-doc:
+deploy_doc:
stage: deploy
only:
- branches@louiz/biboumi
@@ -255,3 +255,37 @@ doc:
- rm -rf /www/latest
- mv _build/html /www/latest
dependencies: []
+
+deploy_doc_tag:
+ stage: deploy
+ only:
+ - tags@louiz/biboumi
+ tags:
+ - www
+ environment:
+ name: doc.$CI_COMMIT_TAG
+ url: https://doc.biboumi.louiz.org/$CI_COMMIT_TAG/
+ on_stop: undeploy_doc_tag
+ image: docker.louiz.org/louiz/biboumi/doc-builder
+ script:
+ - cd doc/
+ - make html
+ - mv _build/html /www/$CI_COMMIT_TAG
+ dependencies: []
+
+undeploy_doc_tag:
+ stage: deploy
+ only:
+ - tags@testing/biboumi
+ tags:
+ - www
+ variables:
+ GIT_STRATEGY: none
+ environment:
+ name: doc.$CI_COMMIT_TAG
+ action: stop
+ image: docker.louiz.org/louiz/biboumi/doc-builder
+ script:
+ - rm -rf /www/$CI_COMMIT_TAG
+ when: manual
+ dependencies: []