Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save felicianotech/2a558f1e0e365d445d6ffb5e38b9455c to your computer and use it in GitHub Desktop.
Save felicianotech/2a558f1e0e365d445d6ffb5e38b9455c to your computer and use it in GitHub Desktop.
CircleCI Go Project Config Sample
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