Skip to content

Instantly share code, notes, and snippets.

@liesislukas
Last active July 19, 2021 14:28
Show Gist options
  • Save liesislukas/a7081cdfe42c9fc7c9df9f6598f7f48c to your computer and use it in GitHub Desktop.
Save liesislukas/a7081cdfe42c9fc7c9df9f6598f7f48c to your computer and use it in GitHub Desktop.
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'
@liesislukas
Copy link
Author

sample buildspec.yml file to build reactjs app with aws code build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment