Skip to content

Instantly share code, notes, and snippets.

@shqear93
Created June 30, 2020 21:45
Show Gist options
  • Save shqear93/f34fd9e6ccafe0e03d6ad15943da036c to your computer and use it in GitHub Desktop.
Save shqear93/f34fd9e6ccafe0e03d6ad15943da036c to your computer and use it in GitHub Desktop.
AWS Amplify cloudformation
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