This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So the app project does not need knowledge about the deployment setup
- Loading branch information
1 parent
e2719b0
commit ef4002a
Showing
2 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
runtime-versions: | ||
nodejs: 10 | ||
commands: | ||
- npm install -g npm@ | ||
- npm ci --no-audit | ||
- npx tsc | ||
build: | ||
commands: | ||
- node dist/scripts/print-react-app-configuration.js > $CODEBUILD_SRC_DIR_BifravstApp/.env.production.local | ||
- cat $CODEBUILD_SRC_DIR_BifravstApp/.env.production.local | ||
- export $(cat $CODEBUILD_SRC_DIR_BifravstApp/.env.production.local | xargs) | ||
- cd $CODEBUILD_SRC_DIR_BifravstApp/; npm ci --no-audit; npm run build; | ||
- aws s3 cp $CODEBUILD_SRC_DIR_BifravstApp/build s3://$REACT_APP_WEBSITE_BUCKET_NAME --recursive --metadata-directive REPLACE --cache-control 'public,max-age=600' --expires '' |