-
Notifications
You must be signed in to change notification settings - Fork 49
/
buildspec.yml
35 lines (34 loc) · 989 Bytes
/
buildspec.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
27
28
29
30
31
32
33
34
35
version: 0.2
env:
git-credential-helper: yes
phases:
install:
runtime-versions:
nodejs: 14.x
commands:
- apt update
- apt install -y ffmpeg
- cd /tmp/
- curl -OJL https://github.com/git-lfs/git-lfs/releases/download/v2.13.3/git-lfs-linux-amd64-v2.13.3.tar.gz
- tar xzf git-lfs-linux-amd64-v2.13.3.tar.gz
- ./install.sh
- mkdir -p /root/lfs
- cd $CODEBUILD_SRC_DIR
pre_build:
commands:
- git config lfs.storage /root/lfs
- git lfs pull
- npm ci
build:
commands:
- npm run build
post_build:
commands:
- bash -c "if [ /"$CODEBUILD_BUILD_SUCCEEDING/" == /"0/" ]; then exit 1; fi"
- aws s3 sync --delete ./dist s3://reclaimers-wiki-files
- aws s3api put-bucket-website --bucket reclaimers-wiki-files --website-configuration file://dist/bucket-website.json
cache:
paths:
# paths which will be cached between builds
- '/root/lfs/**/*'
- '/root/.npm/**/*'