forked from aws-samples/retail-demo-store
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec.yml
34 lines (32 loc) · 1.14 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
34
#
# 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:
runtime-versions:
python: 3.12
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
- python get-pip.py
- python -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:
- python -V
- git clone https://github.com/aws-samples/retail-demo-store
- cd retail-demo-store/
- pip3 install -r generators/requirements.txt
- ./stage.sh retail-demo-store-code --private-s3
- ./stage.sh retail-demo-store-us-east-1 --private-s3 --skip-generators
- ./stage.sh retail-demo-store-us-west-2 --private-s3 --skip-generators