forked from novekm/amplify-with-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
32 lines (30 loc) · 1010 Bytes
/
amplify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: 1
frontend:
phases:
preBuild:
commands:
- echo Entered the pre-build phase...
- pwd
- cd sample-amplify-app
- pwd
- npm install
build:
commands:
- echo "🛠️ Setting up your environmental variables..."
- echo "VITE_REGION=$sample_REGION" >> .env
- echo "VITE_API_ID=$sample_GRAPHQL_API_ID" >> .env
- echo "VITE_GRAPHQL_URL=$sample_GRAPHQL_ENDPOINT" >> .env
- echo "VITE_IDENTITY_POOL_ID=$sample_IDENTITY_POOL_ID" >> .env
- echo "VITE_USER_POOL_ID=$sample_USER_POOL_ID" >> .env
- echo "VITE_APP_CLIENT_ID=$sample_APP_CLIENT_ID" >> .env
- echo "VITE_LANDING_BUCKET=$sample_LANDING_BUCKET_NAME" >> .env
- echo "Printing environmental variables to the console to ensure they are correct"
- cat .env
- npm run build
- echo "✅ Success!"
artifacts:
baseDirectory: ./sample-amplify-app/build
files:
- "**/*"
cache:
paths: