.gitlab-ci.yml 557 Bytes
Newer Older
1 2
image: ubuntu:latest

3 4
before_script:
  - apt update -qq && apt install -y -qq git python-pip
Marcus M. Scheunemann's avatar
Marcus M. Scheunemann committed
5
  - git submodule update --init
6
  - pip install virtualenv -q
Marcus M. Scheunemann's avatar
Marcus M. Scheunemann committed
7 8
  - virtualenv pelican
  - source pelican/bin/activate
9
  - pip install -q -r requirements.txt
10
  
11
build website:
12 13
  stage: build
  script:
14 15 16 17 18 19 20 21 22 23
  - pelican content -o output -s pelicanconf.py
  
deploy website:
  stage: deploy
  only:
  - master
  script:
  - pelican content -o output -s publishconf.py
  - apt install -y -qq lftp
  - lftp $FTP_SERVER -u $FTP_USER,$FTP_PASS -e "mirror -R output/ / ; quit"