From 4e90e817425a1d9b27aa458e80539310b4592924 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sat, 30 May 2020 21:09:35 +0000 Subject: [PATCH] Fix gitlab ci --- .gitlab-ci.yml | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8735cde..279c905 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,25 @@ image: alpine before_script: -- apk --no-cache add make openssh-client py3-setuptools python3-dev py3-pillow py3-lxml -- python3 -m pip install nikola + - apk --no-cache add make openssh-client py3-setuptools py3-pip python3-dev py3-pillow py3-lxml + - pip3 install nikola + - nikola theme -i bootstrap3 -# deploy: -# stage: deploy -# script: -# - mkdir -p ~/.ssh -# - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa -# - chmod 600 ~/.ssh/id_rsa -# - eval $(ssh-agent -s) -# - ssh-add ~/.ssh/id_rsa -# - '[[ -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 +build: + stage: build + script: + - nikola build + - mv output public + artifacts: + paths: + - public pages: script: - - nikola theme -i bootstrap3 - - nikola build - - mv output public + - nikola build + - mv output public artifacts: paths: - - public + - public only: - - master@openlp/website \ No newline at end of file + - master@openlp/website