kind: pipeline type: docker name: default steps: - name: build image: golang commands: - CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' . - go test ./... - name: publish image: plugins/docker:18 settings: auto_tag: true auto_tag_suffix: linux-amd64 daemon_off: false debug: true dockerfile: Dockerfile password: from_secret: docker_password repo: garionion/drone-yaml-server username: from_secret: docker_username