forked from aws/iot-atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
30 lines (28 loc) · 953 Bytes
/
buildspec.yml
File metadata and controls
30 lines (28 loc) · 953 Bytes
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
26
27
28
29
30
version: 0.2
environment_variables:
plaintext:
HUGO_VERSION: "0.53"
phases:
install:
commands:
- echo Installing Hugo on `date`...
- curl -Ls https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -o /tmp/hugo.tar.gz
- echo ... Hugo downloaded ...
- tar -zxf /tmp/hugo.tar.gz -C /tmp
- mv /tmp/hugo /usr/bin/hugo
- rm -rf /tmp/hugo*
pre_build:
commands:
- echo Echoing the Hugo configuration
- cat config.json
- echo Including themes submodules via git
- git submodule update --init --recursive
build:
commands:
- echo Build started on `date`
- hugo version
- hugo --buildDrafts -v
post_build:
commands:
- aws s3 sync public/ s3://iotatlas.net --cache-control max-age=43200 --delete
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths /\*