forked from OpenSecuritySummit/oss2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
25 lines (23 loc) · 828 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
version: 0.2
environment_variables:
plaintext:
HUGO_VERSION: "0.40.3"
STOUT_VERSION: "1.3.1"
BUCKET_NAME: "open-security-summit.com-cdn"
phases:
install:
commands:
# Install hugo
- curl -Ls https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -o /tmp/hugo.tar.gz
- tar xf /tmp/hugo.tar.gz -C /usr/local/bin
pre_build:
commands:
- cd $CODEBUILD_SRC_DIR && git clone https://github.com/devcows/hugo-universal-theme.git themes/oss-owasp
build:
commands:
- hugo
post_build:
commands:
- aws s3 sync --acl "public-read" --sse "AES256" public/ s3://${BUCKET_NAME}
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id E22WEBPD6529KA --paths '/*'