+ ‘gitlab-runner_config_example/docker/.gitlab-ci.yml’
This commit is contained in:
parent
78691df902
commit
527f65d8e6
1 changed files with 28 additions and 0 deletions
28
gitlab-runner_config_example/docker/.gitlab-ci.yml
Normal file
28
gitlab-runner_config_example/docker/.gitlab-ci.yml
Normal 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
|
||||||
Loading…
Reference in a new issue