blob: 5885f0119dcc2e1a6dc64aa90155965b6cf5ef02 (
plain)
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
applications:
- frontend:
phases:
preBuild:
commands:
- 'if [ "$AWS_BRANCH" = "production" ]; then export GH_ACCESS_TOKEN="$(aws ssm get-parameter --name /amplify/shared/d224keb5xu0spt/GH_ACCESS_TOKEN --query Parameter.Value --output text --with-decryption)"; else unset GH_ACCESS_TOKEN; fi'
- npm install -g sass@1.32.8
- python3 -m venv .venv
- source .venv/bin/activate
- pip install pygithub jinja2
- wget https://github.com/PataphysicalSociety/soupault/releases/download/5.3.0/soupault-5.3.0-linux-x86_64.tar.gz
- tar xvf soupault-5.3.0-linux-x86_64.tar.gz
- sudo mv -v ./soupault-5.3.0-linux-x86_64/soupault /usr/bin/
build:
commands:
- source .venv/bin/activate
- 'if [ "$AWS_BRANCH" = "production" ]; then export SOUPAULT_OPTS="--profile live"; else export SOUPAULT_OPTS="--profile staging"; fi'
- make all
artifacts:
baseDirectory: /build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
|