.gitlab-ci.yml 632 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
stages:
  - build
  - deploy

image: pstauffer/python3:latest

variables:
  FTP_USER: 'webmaster_unlog_nl'
  DOMAIN_NAME: 'cryptops.com'

build:
  stage: build
  script:
    # Install sphinx
Maarten de Waard's avatar
Maarten de Waard committed
15
    - pip install sphinx recommonmark
Maarten de Waard's avatar
Maarten de Waard committed
16
    - apk update
Maarten de Waard's avatar
Maarten de Waard committed
17
    - apk add make
18
19
20
21
22
23
24
25
26
27
28
29
    # Build the website
    - cd docs && make html
  artifacts:
    paths:
      - docs/_build/html
    expire_in: 1 week

deploy-master:
  stage: deploy
  environment:
    name: master
    url: $DOMAIN_NAME
30
31
  # only:
  #   - '/^master$/'
32
33
34
  variables:
    SUBDOMAIN: 'DEFAULT'
  script:
Maarten de Waard's avatar
Maarten de Waard committed
35
36
    - apk update
    - apk add openssh-client rsync bash
37
    - ./docs/deploy.sh