Last active
July 19, 2021 14:28
-
-
Save liesislukas/a7081cdfe42c9fc7c9df9f6598f7f48c to your computer and use it in GitHub Desktop.
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: 0.2 | |
env: | |
variables: | |
PORT: "2000" | |
REACT_APP_ENV: "production" | |
REACT_APP_TITLE: "My App" | |
REACT_APP_FAVICON: "favicon.ico" | |
REACT_APP_LOGO_TYPE: "vertical" | |
phases: | |
install: | |
on-failure: ABORT | |
runtime-versions: | |
nodejs: 14.x | |
commands: | |
- echo Install npm packages - START | |
- npm i | |
- echo Install npm packages - DONE | |
build: | |
commands: | |
- echo Build ReactJS app - START | |
- npm run build | |
- echo Build ReactJS app - DONE | |
artifacts: | |
files: | |
- '**/*' | |
base-directory: 'build' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample
buildspec.yml
file to build reactjs app with aws code build