Skip to content

Instantly share code, notes, and snippets.

@kkemple
Created February 11, 2019 20:15
Show Gist options
  • Select an option

  • Save kkemple/89e71fcfe70e2e2e411112202548e7f2 to your computer and use it in GitHub Desktop.

Select an option

Save kkemple/89e71fcfe70e2e2e411112202548e7f2 to your computer and use it in GitHub Desktop.
version: 0.1
backend:
phases:
build:
commands:
- '# Get Amplify CLI Cloud-Formation stack info from environment cache'
- export STACKINFO="$(envCache --get stackInfo)"
- '# Execute Amplify CLI with the helper script'
- amplifyPush --environment $BUILD_ENV
- '# Store Amplify CLI Cloud-Formation stack info in environment cache'
- >-
envCache --set stackInfo "$(amplify env get --json --name
$AWS_BRANCH)"
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment