blog/.gitlab-ci.yml

46 lines
614 B
YAML
Raw Normal View History

image: shockrah/website:latest
2021-02-09 03:22:48 +00:00
2022-03-20 22:54:56 +00:00
2021-02-09 03:22:48 +00:00
stages:
- build
- deploy
2022-03-20 22:54:56 +00:00
include:
- local: 'ci/builders.yml'
2022-03-20 22:54:56 +00:00
build-neocities: &builder
2022-03-20 23:01:11 +00:00
stage: build
2022-03-20 22:54:56 +00:00
script:
- hugo --config configs/neocities.toml
2022-03-20 22:54:56 +00:00
build-pages: &builder
2022-03-20 23:01:11 +00:00
stage: build
script:
2022-03-20 22:54:56 +00:00
- hugo --config configs/pages.toml
2021-02-09 03:22:48 +00:00
2022-01-19 23:37:18 +00:00
2022-03-20 21:20:28 +00:00
pages:
stage: deploy
needs:
2022-03-20 22:54:56 +00:00
- build-pages
2022-03-20 21:20:28 +00:00
dependencies:
2022-03-20 22:59:15 +00:00
- build-pages
2022-03-20 21:20:28 +00:00
script:
2022-03-20 22:54:56 +00:00
- echo Dummy echo for pages job
2022-03-20 21:20:28 +00:00
artifacts:
paths:
- public/
2021-02-09 03:22:48 +00:00
2022-03-20 21:20:28 +00:00
neocities:
stage: deploy
needs:
2022-03-20 22:59:15 +00:00
- build-neocities
2022-03-20 21:20:28 +00:00
when: manual
dependencies:
2022-03-20 22:54:56 +00:00
- build-neocities
2022-03-20 21:20:28 +00:00
script:
- bash scripts/neocities.sh