Skip to content

Instantly share code, notes, and snippets.

@robertstettner
Created April 10, 2018 15:22
Show Gist options
  • Save robertstettner/f0f63f41cebe09e4e36a1972c40fd00d to your computer and use it in GitHub Desktop.
Save robertstettner/f0f63f41cebe09e4e36a1972c40fd00d to your computer and use it in GitHub Desktop.
Example CircleCI file
version: 2
jobs:
install:
docker:
- image: circleci/node:6.13
steps:
- checkout
- run:
command: npm install
test:
docker:
- image: circleci/node:6.13
steps:
- checkout
- run:
command: npm test
deploy:
docker:
- image: hashicorp/terraform
steps:
- checkout
- run:
command: cd ./terraform
- run:
command: terraform apply -auto-approve
workflows:
version: 2
build_and_deploy:
jobs:
- install
- test:
requires:
- install
- deploy:
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment