2021-11-29 00:20:28 +00:00
|
|
|
image: python:3.9-alpine
|
2019-01-09 20:07:07 +00:00
|
|
|
|
2019-01-19 16:53:29 +00:00
|
|
|
publish:
|
2019-01-15 15:06:32 +00:00
|
|
|
except:
|
2020-09-06 22:49:03 +00:00
|
|
|
- production
|
2019-01-19 16:53:29 +00:00
|
|
|
- devel
|
2019-01-15 15:06:32 +00:00
|
|
|
script:
|
|
|
|
- pip install -r requirements.txt
|
2019-01-19 16:53:29 +00:00
|
|
|
- pelican -s pubconf-devel.py --fatal warnings
|
2020-09-06 22:49:03 +00:00
|
|
|
- pelican -s pubconf-production.py --fatal warnings
|
2019-01-15 15:06:32 +00:00
|
|
|
|
2019-01-09 20:07:07 +00:00
|
|
|
pages:
|
2019-01-15 15:06:32 +00:00
|
|
|
only:
|
2020-09-06 22:49:03 +00:00
|
|
|
- production
|
2019-01-09 20:07:07 +00:00
|
|
|
script:
|
|
|
|
- pip install -r requirements.txt
|
2020-09-06 22:59:35 +00:00
|
|
|
- date --utc +%H:%M > theme-uberspot/templates/time
|
|
|
|
- date --utc +%d/%m/%Y > theme-uberspot/templates/date
|
|
|
|
- echo $CI_COMMIT_SHORT_SHA > theme-uberspot/templates/commit
|
2019-01-19 16:53:29 +00:00
|
|
|
- pelican -s "pubconf-${CI_COMMIT_REF_NAME}.py" --fatal warnings
|
2019-01-09 20:07:07 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_success
|
|
|
|
paths:
|
|
|
|
- public
|