drone-ssh/.drone.yml
Bo-Yi Wu f9cc37282c update golang to 1.11
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-09-26 15:42:19 +08:00

97 lines
1.7 KiB
YAML

workspace:
base: /go/src
path: github.com/appleboy/drone-ssh
clone:
git:
image: plugins/git
depth: 50
tags: true
pipeline:
lint:
image: golang:1.11
pull: true
group: golang
commands:
- make vet
- make lint
- make test-vendor
linux_amd64:
image: golang:1.11
pull: true
group: golang
commands:
- make linux_amd64
linux_arm64:
image: golang:1.11
pull: true
group: golang
commands:
- make linux_arm64
linux_arm:
image: golang:1.11
pull: true
group: golang
commands:
- make linux_arm
test:
image: appleboy/golang-testing
pull: true
group: golang
commands:
- make ssh-server
- make test
- make coverage
release:
image: golang:1.11
pull: true
commands:
- make release
when:
event: [ tag ]
local: false
codecov:
image: robertstettner/drone-codecov
secrets: [ codecov_token ]
files:
- .cover/coverage.txt
when:
event: [ push, pull_request ]
status: [ success ]
publish:
image: plugins/docker
pull: true
repo: ${DRONE_REPO}
default_tags: true
secrets: [ docker_username, docker_password ]
group: release
when:
event: [ push, tag ]
local: false
release_tag:
image: plugins/github-release
pull: true
secrets: [ github_release_api_key ]
group: release
files:
- dist/release/*
when:
event: [ tag ]
local: false
discord:
image: appleboy/drone-discord
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]
when:
status: [ changed, failure ]