Fix gitlab ci

This commit is contained in:
Raoul Snyman 2020-05-30 21:09:35 +00:00 committed by Tim Bentley
parent ac3fd4c4c5
commit 4e90e81742
1 changed files with 15 additions and 23 deletions

View File

@ -1,33 +1,25 @@
image: alpine image: alpine
before_script: before_script:
- apk --no-cache add make openssh-client py3-setuptools python3-dev py3-pillow py3-lxml - apk --no-cache add make openssh-client py3-setuptools py3-pip python3-dev py3-pillow py3-lxml
- python3 -m pip install nikola - pip3 install nikola
- nikola theme -i bootstrap3
# deploy: build:
# stage: deploy stage: build
# script: script:
# - mkdir -p ~/.ssh - nikola build
# - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - mv output public
# - chmod 600 ~/.ssh/id_rsa artifacts:
# - eval $(ssh-agent -s) paths:
# - ssh-add ~/.ssh/id_rsa - public
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - nikola theme -i bootstrap3
# - nikola build
# - echo "$STRIPE_API_KEY" > stripe.ini
# - cd output
# - scp -r * openlp@openlp.org:public_html/
# only:
# - master@openlp/website
pages: pages:
script: script:
- nikola theme -i bootstrap3 - nikola build
- nikola build - mv output public
- mv output public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master@openlp/website - master@openlp/website