Skip to content

Instantly share code, notes, and snippets.

@romitkarmakar
Forked from hzburki/buildspec.yml
Created October 8, 2019 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romitkarmakar/2e0ace6b02677977316d8435acd8fc8d to your computer and use it in GitHub Desktop.
Save romitkarmakar/2e0ace6b02677977316d8435acd8fc8d to your computer and use it in GitHub Desktop.
buildspec.yml file for uploading static site to AWS S3 with CodeBuild
version: 0.2
phases:
install:
commands:
- npm i npm@latest -g
- pip install --upgrade pip
- pip install --upgrade awscli
pre_build:
commands:
- npm install
build:
commands:
- npm run build:$ENVIRONMENT
post_build:
commands:
- aws s3 sync ./build $S3_BUCKET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment