diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..c62d3eee6af94538e32c0da793de44146cbe2372 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +stages: + - build + - deploy + +.build: &build + stage: build + script: + - cd docs + - make html + artifacts: + paths: + - docs/build/html + +build:docker: + <<: *build + tags: + - docker + image: sphinxdoc/sphinx + needs: [ ] + +.deploy: &deploy + stage: deploy + script: + - cp -rv docs/build/html/* ${DEPLOY_PATH} + +deploy:prod: + <<: *deploy + tags: + - caesarvm + only: + - main + needs: [ "build:docker" ] + variables: + DEPLOY_PATH: "/app/wiki/docs/build/html" + GIT_STRATEGY: clone \ No newline at end of file