Commit 9d1abcf5 authored by Marcus M. Scheunemann's avatar Marcus M. Scheunemann

split in stages for having an overview if a plugin installation fails or the...

split in stages for having an overview if a plugin installation fails or the code generation, compile non-publish output separately, avoid triggering apt/pip several times
parent 855fc04f
image: ubuntu:16.04
image: ubuntu:18.04
before_script:
stages:
- prepare
- build
- deploy
prepare environment:
stage: prepare
script:
- apt update -qq && apt install -y -qq lftp git python-pip
- python -V
- pip -V
- pip install virtualenv -q
generate website:
script:
- git submodule update --init
- pip install virtualenv -q
- virtualenv pelican
- source pelican/bin/activate
- pip install -q -r requirements.txt
- pelican content -o output -s pelicanconf.py
generate website:
stage: build
script:
- source pelican/bin/activate
- pelican content -o output_local -s pelicanconf.py
deploy website:
type: deploy
stage: deploy
only:
- master
script:
- git submodule update --init
- virtualenv pelican
- apt install -y -qq lftp
- source pelican/bin/activate
- pip install -q -r requirements.txt
- pelican content -o output -s publishconf.py
- lftp $FTP_SERVER -u $FTP_USER,$FTP_PASS -e "mirror -R output/ / ; quit"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment