forked from aws-samples/retail-demo-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
33 lines (31 loc) · 1.18 KB
/
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
#
# AWS Codebuild specifications
# This file is only used for internal deployment of the code on each public commit
# It is NOT needed if you're demoing or developping locally
#
version: 0.2
phases:
install:
commands:
- echo Entered the install phase...
- yum -y install git python3 golang
- yum -y update ca-certificates
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python3 get-pip.py
- python3 -m venv retailstore/env
- . retailstore/env/bin/activate
- pip install pip --upgrade
- go get github.com/aws/aws-lambda-go/lambda
- go get github.com/aws/aws-lambda-go/cfn
- go get github.com/aws/aws-sdk-go
- go get gopkg.in/yaml.v2
build:
commands:
- git clone https://github.com/aws-samples/retail-demo-store
- cd retail-demo-store/
- pip install -r generators/requirements.txt
- ./stage.sh retail-demo-store-us-east-1
- ./stage.sh retail-demo-store-us-west-2 --skip-generators
- ./stage.sh retail-demo-store-ap-northeast-1 --skip-generators
- ./stage.sh retail-demo-store-ap-southeast-2 --skip-generators
- ./stage.sh retail-demo-store-eu-west-1 --skip-generators