Skip to content

Instantly share code, notes, and snippets.

@kkasaei
Created October 5, 2019 02:18
Show Gist options
  • Save kkasaei/d5236032f6ea9456149f9f155abb9661 to your computer and use it in GitHub Desktop.
Save kkasaei/d5236032f6ea9456149f9f155abb9661 to your computer and use it in GitHub Desktop.
Amplify.yaml Template
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 $AWS_BRANCH - '# 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/**/*version: 0.1
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