This repository was archived by the owner on Sep 26, 2025. It is now read-only.
forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathamplify.yml
More file actions
38 lines (38 loc) · 1.62 KB
/
amplify.yml
File metadata and controls
38 lines (38 loc) · 1.62 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
37
38
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- echo "Installing Make..."
- yum install -y make
- make -v
- echo "Installing Cuelang..."
- curl -LO "https://github.com/cue-lang/cue/releases/download/v0.6.0/cue_v0.6.0_linux_amd64.tar.gz"
- mkdir tmp_cue_install
- tar xzf cue_v0.6.0_linux_amd64.tar.gz -C tmp_cue_install
- mv tmp_cue_install/cue /usr/bin/
- rm -rf tmp_cue_install
- cue version
- echo "Installing htmltest..."
- curl -LO "https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz"
- tar xzf htmltest_0.17.0_linux_amd64.tar.gz
- mv htmltest /usr/local/bin/
- htmltest --version
- echo "Installing Hugo v${HUGO_VERSION}..."
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
- tar xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
- mv hugo /usr/bin/
- hugo version
build:
commands:
- if [ ! -n "${AWS_PULL_REQUEST_ID}" ]; then DEPLOY_PRIME_URL="https://$(echo "${AWS_BRANCH}" | sed 's/[./]/-/g').d1a7j77663uxsc.amplifyapp.com"; else DEPLOY_PRIME_URL="https://pr-${AWS_PULL_REQUEST_ID}.d1a7j77663uxsc.amplifyapp.com"; fi
- make $DEPLOY_COMMAND
artifacts:
baseDirectory: public
files:
- '**/*'
cache:
paths:
- node_modules/**/*
appRoot: website