workspace: base: /go pipeline: test: image: golang:1.6 environment: - CGO_ENABLED=0 commands: - go vet - go test -cover -coverprofile=coverage.out - go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo publish: image: docker repo: plugins/ssh username: ${DOCKER_USERNAME} password: ${DOCKER_PASSWORD} tags: [ "latest", "1.0", "1" ] when: branch: master event: push notify: image: plugins/gitter webhook: ${GITTER_WEBHOOK} when: status: [ success, failure ] event: [ push, pull_request ] plugin: name: SSH desc: Execute commands on a remote host through SSH type: deploy image: plugins/ssh labels: - deploy - ssh