Commit bf97478b authored by louiz’'s avatar louiz’ 🐗

Add a job to deploy and undeploy the doc for tags

fix #3377
parent 6dbac489
......@@ -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: []
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment