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