Merge branch 'add-ssl' into 'master'
add cloudfront cache invalidation to ci See merge request softinio/softinio.com!11
This commit is contained in:
commit
1e44952695
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,6 @@
|
||||||
# .gitlab-ci.yml
|
# .gitlab-ci.yml
|
||||||
image: publysher/hugo
|
image: publysher/hugo
|
||||||
|
|
||||||
|
|
||||||
production:
|
production:
|
||||||
type: deploy
|
type: deploy
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -11,6 +10,7 @@ production:
|
||||||
script:
|
script:
|
||||||
- hugo
|
- hugo
|
||||||
- aws s3 sync public/ s3://$AWS_BUCKET
|
- aws s3 sync public/ s3://$AWS_BUCKET
|
||||||
|
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
Loading…
Reference in a new issue