Skip to content

Instantly share code, notes, and snippets.

@hzburki
Created December 15, 2018 13:33
Show Gist options
  • Save hzburki/0711e7d637c148fe0957d41186d3d4d2 to your computer and use it in GitHub Desktop.
Save hzburki/0711e7d637c148fe0957d41186d3d4d2 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