Skip to content

Instantly share code, notes, and snippets.

@kevinkarwaski
Created September 26, 2019 13:55
Show Gist options
  • Save kevinkarwaski/6b5a6d6685523434ed6372ba01806a60 to your computer and use it in GitHub Desktop.
Save kevinkarwaski/6b5a6d6685523434ed6372ba01806a60 to your computer and use it in GitHub Desktop.
Example CodeBuild buildspec file
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing app dependencies...
- yarn install
build:
commands:
- echo Building static site...
- yarn build
- echo Run tests...
- CI=true yarn test
artifacts:
type: zip
paths:
- './build/**/*'
- './cicd/**/*'
cache:
paths:
- './node_modules/**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment