forked from quran/quran.com-frontend-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
8 lines (8 loc) · 1 KB
/
build.yml
1
2
3
4
5
6
7
8
version: 0.2
phases:
build:
commands:
- docker login -u AWS -p $(aws ecr get-login-password --region $AWS_REGION) $ECR_ENDPOINT
- docker build -t builtimage --build-arg NEXT_PUBLIC_VERCEL_ENV=$NEXT_PUBLIC_VERCEL_ENV --build-arg NEXT_PUBLIC_VERCEL_URL=$NEXT_PUBLIC_VERCEL_URL --build-arg NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=$NEXT_PUBLIC_GOOGLE_ANALYTICS_ID --build-arg NEXT_PUBLIC_TARTEEL_VS_API_KEY=$NEXT_PUBLIC_TARTEEL_VS_API_KEY --build-arg NEXT_PUBLIC_FS_API_KEY=$NEXT_PUBLIC_FS_API_KEY --build-arg NEXT_PUBLIC_FS_AUTH_DOMAIN=$NEXT_PUBLIC_FS_AUTH_DOMAIN --build-arg NEXT_PUBLIC_FS_PROJECT_ID=$NEXT_PUBLIC_FS_PROJECT_ID --build-arg NEXT_PUBLIC_FS_STORAGE_BUCKET=$NEXT_PUBLIC_FS_STORAGE_BUCKET --build-arg NEXT_PUBLIC_FS_MESSAGING_SENDER_ID=$NEXT_PUBLIC_FS_MESSAGING_SENDER_ID --build-arg NEXT_PUBLIC_FS_APP_ID=$NEXT_PUBLIC_FS_APP_ID --build-arg NEXT_PUBLIC_FS_MEASUREMENT_ID=$NEXT_PUBLIC_FS_MEASUREMENT_ID .
- docker tag builtimage:latest $ECR_IMAGE_URL:latest
- docker push $ECR_IMAGE_URL:latest