spf13--cobra/.circleci/config.yml
2021-12-16 14:13:53 -05:00

30 lines
774 B
YAML

version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.15
auth:
username: $DOCKERHUB_USER
password: $DOCKERHUB_PASSWORD
environment: # environment variables for primary container
DEPLOYMENT: test
#### TEMPLATE_NOTE: go expects specific checkout path representing url
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/OneCloudInc/cobra
steps:
- checkout
- run:
name: Run tests
command: |
go test ./...
workflows:
version: 2
workflow:
jobs:
- build:
context:
- dockerhub