2019-08-20 02:57:47 +00:00
|
|
|
image: registry.gitlab.com/pages/hugo:latest
|
2019-08-20 02:55:29 +00:00
|
|
|
|
2021-02-22 21:21:58 +00:00
|
|
|
stages:
|
2021-11-06 03:15:11 +00:00
|
|
|
- build
|
2022-01-26 20:10:59 +00:00
|
|
|
- deploy
|
2021-02-22 21:21:58 +00:00
|
|
|
|
|
|
|
|
2019-08-20 02:57:47 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2019-08-20 02:55:29 +00:00
|
|
|
|
2022-01-26 20:10:59 +00:00
|
|
|
# This build stage will also leave artifacts ready for gitlab pages to use
|
2022-02-01 21:10:48 +00:00
|
|
|
pages:
|
2021-11-06 03:15:11 +00:00
|
|
|
stage: build
|
2021-10-19 07:24:07 +00:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
2019-08-20 02:41:28 +00:00
|
|
|
script:
|
|
|
|
- hugo
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-08-20 02:55:29 +00:00
|
|
|
- public
|
2023-03-15 03:37:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
build-resume.shockrah.xyz:
|
|
|
|
stage: build
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
script:
|
|
|
|
- hugo
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
|
|
|
|
deploy-resume.shockrah.xyz:
|
|
|
|
stage: deploy
|
|
|
|
image:
|
2023-03-15 03:46:03 +00:00
|
|
|
name: amazon/aws-cli:2.2.25
|
2023-03-15 03:37:13 +00:00
|
|
|
entrypoint: [""]
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
needs:
|
|
|
|
- build-resume.shockrah.xyz
|
|
|
|
before_script:
|
|
|
|
- bash scripts/verify-aws-fields.sh
|
2023-03-15 03:44:38 +00:00
|
|
|
script:
|
2023-03-15 03:37:13 +00:00
|
|
|
- aws s3 cp public/ s3://resume.shockrah.xyz --recursive
|