Created
April 30, 2018 18:15
-
-
Save felicianotech/2a558f1e0e365d445d6ffb5e38b9455c to your computer and use it in GitHub Desktop.
CircleCI Go Project Config Sample
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
workflows: | |
version: 2 | |
build-and-deploy: | |
jobs: | |
- build | |
- deploy: | |
requires: | |
- build | |
filters: | |
branches: | |
only: master | |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/golang:1.10 | |
- image: circleci/postgres:10.3 | |
environment: | |
POSTGRES_USER: circleci-demo-go | |
POSTGRES_DB: circle_test | |
working_directory: /go/src/github.com/CircleCI-Public/circleci-demo-go | |
steps: | |
- checkout | |
- run: | |
name: "Install Dependencies" | |
command: | | |
go get -u github.com/jstemmer/go-junit-report | |
go get ./... | |
- run: | |
name: "Run Tests" | |
command: go test -v | |
deploy: | |
docker: | |
- image: cibuilds/aws:1.15.0 | |
steps: | |
- run: | |
name: "Build new Kubernetes config" | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment