2024-05-12 09:01:12 -04:00
|
|
|
image: debian:bookworm
|
2022-04-02 09:24:17 -04:00
|
|
|
|
2019-12-13 19:44:34 -05:00
|
|
|
stages:
|
|
|
|
- analyse
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
2022-04-02 09:24:17 -04:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .venv/
|
2023-04-14 14:24:12 -04:00
|
|
|
- /.cache/poetry
|
2022-04-02 09:24:17 -04:00
|
|
|
|
2022-07-12 18:20:58 -04:00
|
|
|
.setup_build: &setup_build
|
2022-04-02 09:24:17 -04:00
|
|
|
- apt-get update
|
|
|
|
- apt-get dist-upgrade -y
|
|
|
|
- >
|
|
|
|
apt-get install --no-install-recommends -y
|
|
|
|
git
|
2024-05-12 09:01:12 -04:00
|
|
|
hugo
|
2022-04-02 09:24:17 -04:00
|
|
|
rsync
|
|
|
|
|
2023-04-14 14:24:12 -04:00
|
|
|
doc:
|
2019-12-13 19:44:34 -05:00
|
|
|
stage: test
|
2022-04-02 09:24:17 -04:00
|
|
|
needs: []
|
2019-12-13 19:44:34 -05:00
|
|
|
script:
|
2022-04-02 09:24:17 -04:00
|
|
|
- *setup_build
|
2024-05-12 09:01:12 -04:00
|
|
|
- hugo --minify
|
2019-12-13 19:44:34 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2024-05-12 09:01:12 -04:00
|
|
|
- public
|
2019-12-13 19:44:34 -05:00
|
|
|
|
2022-04-02 09:24:17 -04:00
|
|
|
pages:
|
2019-12-13 19:44:34 -05:00
|
|
|
stage: deploy
|
2022-04-02 09:24:17 -04:00
|
|
|
rules:
|
|
|
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
2023-04-14 14:24:12 -04:00
|
|
|
needs: ["doc"]
|
2022-04-02 09:24:17 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|