1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-07-27 18:58:19 +00:00
website/.gitlab-ci.yml
Raoul Snyman 363f4c4758 Blog post about the BibleGateway error
- Upgraded to Nikola v8
- Created a post from Tomas' blog post
2019-07-15 00:08:07 +00:00

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