forked from aws-samples/aws-reinvent-trivia-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
25 lines (23 loc) · 813 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
version: 0.2
phases:
install:
runtime-versions:
nodejs: latest
commands:
- cd chat-bot/bot
- npm install -g npm@latest
- npm ci
- cd ..
build:
commands:
- aws cloudformation package --template-file template.yaml --s3-bucket $ARTIFACTS_BUCKET --output-template-file TriviaGameChatBotProd.template.yaml
- sed 's/api.reinvent-trivia.com/api-test.reinvent-trivia.com/g' TriviaGameChatBotProd.template.yaml > TriviaGameChatBotTest.template.yaml
- cp StackConfig.json StackConfigTest.json
- cp StackConfig.json StackConfigProd.json
artifacts:
files:
- chat-bot/TriviaGameChatBotTest.template.yaml
- chat-bot/TriviaGameChatBotProd.template.yaml
- chat-bot/StackConfigTest.json
- chat-bot/StackConfigProd.json
discard-paths: yes