forked from brentley/appmeshworkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
26 lines (26 loc) · 840 Bytes
/
amplify.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
26
version: 1.0
env:
variables:
VERSION_HUGO: 0.55.6
frontend:
phases:
build:
commands:
- env
- export IMAGE_TAG=$(echo ${AWS_COMMIT_ID} | cut -c1-7)
- echo "<p class="build-number">${IMAGE_TAG}</p>" >> layouts/partials/menu-footer.html
- git submodule init && git submodule update
- wget https://github.com/gohugoio/hugo/releases/download/v${VERSION_HUGO}/hugo_${VERSION_HUGO}_Linux-64bit.tar.gz
- tar -xvf hugo_${VERSION_HUGO}_Linux-64bit.tar.gz hugo
- mv -v hugo /usr/bin/hugo
- chmod +x /usr/bin/hugo
- ls -l /usr/bin/hugo
- rm -rvf hugo_${VERSION_HUGO}_Linux-64bit.tar.gz
- hugo -v
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: public
files:
- '**/*'
cache:
paths: []