Created
June 30, 2020 21:45
-
-
Save shqear93/f34fd9e6ccafe0e03d6ad15943da036c to your computer and use it in GitHub Desktop.
AWS Amplify cloudformation
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: 1 | |
frontend: | |
phases: | |
preBuild: | |
commands: | |
- npm ci | |
build: | |
commands: | |
- ENV=staging | |
- if [ "${AWS_BRANCH}" = "master" ]; then ENV=production; fi | |
- if [ "${AWS_BRANCH}" = "staging" ]; then ENV=uat; fi | |
- npx ng build "--configuration=${ENV}" | |
artifacts: | |
baseDirectory: dist/Aqlamy | |
files: | |
- '**/*' | |
cache: | |
paths: | |
- node_modules/**/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment