Using official golang docker image -
Install dependencies
tasks:
dependencies:
image: instrumentisto/dep:0.5.0
command:
- dep ensure -v -vendor-only
Build binary
tasks:
build:
image: golang:1.11
environment:
CGO_ENABLED: 0
commands:
- go build -ldflags "-X main.Version=[[ .Env.CI_COMMIT_SHA ]]"