2021-08-17 00:27:54 +00:00
|
|
|
image: shockrah/website:latest
|
2021-02-09 03:22:48 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
2021-08-17 00:11:10 +00:00
|
|
|
|
2021-02-09 03:22:48 +00:00
|
|
|
build-site:
|
2021-08-14 22:15:37 +00:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
|
2020-10-26 07:51:40 +00:00
|
|
|
stage: build
|
2021-02-09 03:43:48 +00:00
|
|
|
|
2020-10-26 07:51:40 +00:00
|
|
|
script:
|
2021-08-17 05:05:31 +00:00
|
|
|
- hugo version
|
2021-08-17 00:11:10 +00:00
|
|
|
- hugo
|
2021-02-09 03:22:48 +00:00
|
|
|
|
2021-02-09 03:43:48 +00:00
|
|
|
artifacts:
|
2021-08-17 00:11:10 +00:00
|
|
|
paths:
|
2022-01-19 23:37:18 +00:00
|
|
|
- public/
|
|
|
|
|
|
|
|
|
2022-03-20 21:20:28 +00:00
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
needs:
|
|
|
|
- build-site
|
|
|
|
dependencies:
|
|
|
|
- build-site
|
|
|
|
# Dummy script to keep the job valid
|
|
|
|
script:
|
|
|
|
- >
|
|
|
|
if [ -d public/ ]; then
|
|
|
|
echo 'Public directory found'
|
|
|
|
else
|
|
|
|
echo 'Nothing found'
|
|
|
|
fi
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public/
|
2021-02-09 03:22:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-20 21:20:28 +00:00
|
|
|
neocities:
|
|
|
|
stage: deploy
|
|
|
|
needs:
|
|
|
|
- build-site
|
|
|
|
when: manual
|
|
|
|
dependencies:
|
|
|
|
- build-site
|
|
|
|
script:
|
|
|
|
- bash scripts/neocities.sh
|