/ ‘.gitlab-ci.yml’

This commit is contained in:
Dooho Yi 2020-04-12 16:12:03 +09:00
parent 830b1bc168
commit cab100995b

View file

@ -1,13 +1,24 @@
image: python:3.7-alpine image: python:3.7-alpine
build: pages:
stage: deploy
script: script:
- apk update && apk add make - apk update && apk add make
- pip install -r requirements.txt - pip install -r requirements.txt
- PATH=$PATH:~/.local/bin - make publish
- make publish
- rm -rf /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican
- cp -r output /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican
artifacts: artifacts:
paths: paths:
- public - public/
only:
- master
test:
stage: test
script:
- apk update && apk add make
- pip install -r requirements.txt
- make publish
only:
- branches
except:
- master