2017-12-15 06:29:07 -08:00
|
|
|
# .gitlab-ci.yml
|
2018-03-16 11:13:02 -07:00
|
|
|
image: registry.gitlab.com/softinio/hugo-docker
|
2017-12-15 06:29:07 -08:00
|
|
|
|
|
|
|
production:
|
|
|
|
type: deploy
|
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get -qq install python python-pip ca-certificates
|
|
|
|
- pip install awscli
|
|
|
|
script:
|
|
|
|
- hugo
|
|
|
|
- aws s3 sync public/ s3://$AWS_BUCKET
|
2017-12-16 17:51:32 -08:00
|
|
|
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
|
2017-12-15 06:29:07 -08:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|