mirror of
https://gitlab.com/openlp/website.git
synced 2024-10-04 21:37:34 +00:00
42 lines
779 B
YAML
42 lines
779 B
YAML
|
image: alpine
|
||
|
|
||
|
before_script:
|
||
|
- apk --no-cache add make openssh-client py3-setuptools python3-dev py3-pillow py3-lxml
|
||
|
- python3 -m pip install nikola
|
||
|
|
||
|
pages:
|
||
|
stage: deploy
|
||
|
script:
|
||
|
- nikola theme -i bootstrap3
|
||
|
- nikola build
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- output
|
||
|
only:
|
||
|
- master
|
||
|
|
||
|
test:
|
||
|
stage: test
|
||
|
script:
|
||
|
- nikola theme -i bootstrap3
|
||
|
- nikola build
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- output
|
||
|
except:
|
||
|
- master
|
||
|
|
||
|
deploy:
|
||
|
stage: deploy
|
||
|
script:
|
||
|
- nikola theme -i bootstrap3
|
||
|
- nikola build
|
||
|
- cd output
|
||
|
- echo "$STRIPE_API_KEY" > stripe.ini
|
||
|
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||
|
- mkdir -p ~/.ssh
|
||
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||
|
- scp -r * openlp@openlp.org:public_html/
|
||
|
only:
|
||
|
- master
|