Add CI/CD

This MR introduces a CI/CD pipeline that deploys the rendered HTML content onto the VM hosted at SSDC

Merge request reports

Loading

.gitlab-ci.yml

0 → 100644
+35 −0
Changes for .gitlab-ci.yml: 35 added lines, 0 removed lines.
Original line number Diff line number Diff line
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
Loading