Created
October 5, 2019 02:18
-
-
Save kkasaei/d5236032f6ea9456149f9f155abb9661 to your computer and use it in GitHub Desktop.
Amplify.yaml Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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