-
Notifications
You must be signed in to change notification settings - Fork 23
/
buildspec.yml
23 lines (22 loc) · 1.11 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
version: 0.2
phases:
install:
commands:
- export NODE_OPTIONS="--max-old-space-size=8192"
- npm install -g --silent yarn
- npm install -g --silent [email protected]
- yarn install --silent
pre_build:
commands:
# - yarn web:test
- aws s3 sync s3://boossti-codepipeline-artifacts/boossti/${CODEBUILD_INITIATOR#*codepipeline/}/.serverless packages/web/.serverless --delete
- echo "STAGE=${CODEBUILD_INITIATOR#*codepipeline/}\nNEXT_PUBLIC_GRAPHQL_ENDPOINT=$GRAPHQL_ENDPOINT\nNEXT_PUBLIC_GRAPHQL_APIKEY=$GRAPHQL_APIKEY\nNEXT_PUBLIC_ONE_SIGNAL_APP_ID=$ONE_SIGNAL_APP_ID\nNEXT_PUBLIC_REDIRECT_URL=$REDIRECT_URL\nNEXT_PUBLIC_USER_FORM_SLUG=users\nNEXT_PUBLIC_SHOPIFY_PRODUCT_FAVORITE_TEMPLATE=shopify-product-favorite-app-2" > ./packages/web/.env.production
- yarn web:storybook:build
- echo Build completed on `date`
build:
commands:
- yarn web:deploy
post_build:
commands:
- aws s3 sync packages/web/.serverless s3://boossti-codepipeline-artifacts/boossti/${CODEBUILD_INITIATOR#*codepipeline/}/.serverless --delete
- echo Deploy completed on `date`