CoCalc Public Filesoss2019 / buildspec.ymlOpen in CoCalc with one click!
Authors: harald @schil.ly, Testing CoCalc, Harald Schilly, Harald Schilly, HaraldTest SchillyTest, ℏal Snyder, William A. Stein
Description: https://github.com/OpenSecuritySummit/oss2019
1
version: 0.2
2
3
environment_variables:
4
plaintext:
5
BUCKET_NAME: "open-security-summit.com-cdn"
6
DISTRIBUTION_ID: "E10Y1IDSCYIUQ5"
7
AWS_DEFAULT_REGION: "eu-west-2"
8
9
phases:
10
pre_build:
11
commands:
12
- echo "CODEBUILD_WEBHOOK_TRIGGER - $CODEBUILD_WEBHOOK_TRIGGER"
13
build:
14
commands:
15
- hugo
16
post_build:
17
commands:
18
- |
19
if [ "$CODEBUILD_WEBHOOK_TRIGGER" = "branch/master" ]; then
20
aws s3 sync --acl "public-read" --sse "AES256" public/ s3://${BUCKET_NAME}/2019/;
21
aws configure set preview.cloudfront true;
22
aws cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths '/*';
23
fi
24
artifacts:
25
files:
26
- '**/*'
27
base-directory: 'public'
28