Created
April 10, 2018 15:22
-
-
Save robertstettner/f0f63f41cebe09e4e36a1972c40fd00d to your computer and use it in GitHub Desktop.
Example CircleCI file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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