+ ‘gitlab-runner_config_example/docker/.gitlab-ci.yml’

This commit is contained in:
Dooho Yi 2020-04-12 16:48:13 +09:00
parent 78691df902
commit 527f65d8e6

View file

@ -0,0 +1,28 @@
image: python:3.7-alpine
pages:
stage: deploy
script:
- apk update && apk add make
- pip install -r requirements.txt
- make publish
- rm -rf /site-public/pelican
- cp -r public /site-public/pelican
artifacts:
paths:
- public/
only:
- master
test:
stage: test
script:
- apk update && apk add make
- pip install -r requirements.txt
- make publish
- rm -rf /site-public/pelican
- cp -r public /site-public/pelican
only:
- branches
except:
- master