resume/.gitlab-ci.yml

49 lines
764 B
YAML
Raw Normal View History

2019-08-20 02:57:47 +00:00
image: registry.gitlab.com/pages/hugo:latest
2019-08-20 02:55:29 +00:00
stages:
2021-11-06 03:15:11 +00:00
- build
2022-01-26 20:10:59 +00:00
- deploy
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
only:
refs:
- master
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:
name: amazon/aws-cli:2.2..25
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