2019-07-15 00:08:07 +00:00
|
|
|
image: alpine
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apk --no-cache add make openssh-client py3-setuptools python3-dev py3-pillow py3-lxml
|
|
|
|
- python3 -m pip install nikola
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2019-07-15 00:17:54 +00:00
|
|
|
- mkdir -p ~/.ssh
|
2019-07-15 00:16:14 +00:00
|
|
|
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
2019-07-15 00:19:12 +00:00
|
|
|
- chmod 600 ~/.ssh/id_rsa
|
2019-07-15 00:16:14 +00:00
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- ssh-add ~/.ssh/id_rsa
|
|
|
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
2019-07-15 00:08:07 +00:00
|
|
|
- nikola theme -i bootstrap3
|
|
|
|
- nikola build
|
2019-07-15 00:16:14 +00:00
|
|
|
- echo "$STRIPE_API_KEY" > stripe.ini
|
|
|
|
- cd output
|
2019-07-15 00:08:07 +00:00
|
|
|
- scp -r * openlp@openlp.org:public_html/
|
|
|
|
only:
|
2019-09-26 16:40:11 +00:00
|
|
|
- master@openlp/website
|