Commit b393d86f authored by Valerio Formato's avatar Valerio Formato
Browse files

Merge branch 'ci_dev' into 'main'

Add CI/CD

See merge request !5
parents 60541071 2ddb81a3
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+35 −0
Original line number Original line 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