-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildspec.yaml
27 lines (27 loc) · 1.01 KB
/
buildspec.yaml
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
version: 0.2
phases:
install:
commands:
# Install all dependencies (including dependencies for running tests)
#- pip3 install awscli
#- pip3 install aws-sam-cli
#- apt install -y nodejs
#- apt install -y npm
#- pip3 install toml
#- npm install -g pnpm
pre_build:
commands:
# Discover and run unit tests in the '__tests__' directory
#- npm run test
# Remove all dependencies not needed for the Lambda deployment package (the packages from devDependencies in package.json)
build:
commands:
# Use AWS SAM to package the application by using AWS CloudFormation
#- sam build
#- sam deploy --stack-name spreading-15-44 --s3-bucket zego-spreading-test
#- cp -rf pages/* /mnt/spreading-15-44
- sh ./build.sh
#- aws cloudformation package --template template.yaml --s3-bucket aws-sam-cli-managed-default-samclisourcebucket-wzxzs8p08pkk --output-template-file template-export.yml --debug
artifacts:
files:
#- template-export.yml