/ ‘.gitlab-ci.yml’
This commit is contained in:
parent
830b1bc168
commit
cab100995b
1 changed files with 19 additions and 8 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue