-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
34 lines (32 loc) · 1.01 KB
/
buildspec.yml
File metadata and controls
34 lines (32 loc) · 1.01 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
version: 0.2
phases:
install:
commands:
- echo Installing Node 12...
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt install -y nodejs
pre_build:
commands:
- echo Installing dependencies...
- npm install
- cp $CODEBUILD_SRC_DIR_S3SourceArtifact/cognito-config.json ./src/config/cognito-config.json
- cp $CODEBUILD_SRC_DIR_S3SourceArtifact/network-config.json ./backend/config/network-config.json
build:
commands:
- echo Building...
- npm run build
post_build:
commands:
- mkdir ./fullbuild
- cp -a ./build ./fullbuild/frontend
- cp -a ./backend ./fullbuild/backend
- mv ./fullbuild/backend/__init__.py ./fullbuild/backend/backend.py
- cp ./requirements.txt ./fullbuild/backend/requirements.txt
- cp ./appspec.yml ./fullbuild/appspec.yml
- cp -a ./scripts ./fullbuild/scripts
- cp -a ./apache ./fullbuild/apache
artifacts:
files:
- "**/*"
discard-paths: no
base-directory: fullbuild