-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
36 lines (34 loc) · 1.03 KB
/
buildspec.yml
File metadata and controls
36 lines (34 loc) · 1.03 KB
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
31
32
33
34
35
36
version: 0.2
environment_variables:
plaintext:
AWS_DEFAULT_REGION: "us-west-2"
HUGO_VERSION: "0.142.0"
HUGO_SHA256: "457fbcca8d919a503087ec26420cca89d58da321318b5ef423b5ffdb24716424"
NODE_ENV: "development"
HUGO_ENV: "production"
phases:
install:
commands:
- curl -Ls https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_withdeploy_${HUGO_VERSION}_Linux-64bit.tar.gz -o /tmp/hugo.tar.gz
- echo "${HUGO_SHA256} /tmp/hugo.tar.gz" | sha256sum -c -
- tar xf /tmp/hugo.tar.gz -C /tmp
- mv /tmp/hugo /usr/bin/hugo
- rm -rf /tmp/hugo*
pre_build:
commands:
- git submodule update --init --recursive
- npm ci --verbose
- rm -rf /tmp/hugo_cache/
- rm -rf ./public
build:
commands:
- hugo -b https://danielmuller.me/ --gc --minify
post_build:
commands:
- bash bin/alias/build
- hugo deploy --maxDeletes -1 --invalidateCDN
- bash bin/alias/push
cache:
paths:
- "node_modules/**/*"
- "resources/**/*"