kind: pipeline name: default steps: - name: build image: cr.registry.com/library/golang:1.13.3-alpine commands: - go build -ldflags "-X 'main.buildTime=`date`' -X 'main.goVersion=`go version`' -X 'main.gitHash=${DRONE_COMMIT_SHA}' -X 'main.version=${DRONE_TAG=latest}'" -a -o bin/ep-healthcheck cmd/ep-healthcheck/main.go environment: GOPROXY: https://goproxy.registry.com CGO_ENABLED: 0 GOOS: linux GOARCH: amd64 - name: docker image: cr.registry.com/drone/kaniko settings: repo: op/kube-ep-healthcheck username: from_secret: username password: from_secret: password auto_tag: true