drone-telegram/.drone.yml
Bo-Yi Wu 53b61735b1 chnage fb to discord.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-12-02 15:19:01 +08:00

68 lines
1.3 KiB
YAML

workspace:
base: /go/src
path: github.com/appleboy/drone-telegram
clone:
git:
image: plugins/git
depth: 50
tags: true
pipeline:
test:
image: appleboy/golang-testing
pull: true
secrets: [ codecov_token, telegram_token, telegram_to ]
commands:
- make vet
- make lint
- make test-vendor
- make misspell-check
- make test
- make coverage
- make build
# build binary for docker image
- make static_build
when:
event: [ push, tag, pull_request ]
release:
image: appleboy/golang-testing
pull: true
commands:
- make release
when:
event: [ tag ]
docker:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ]
when:
event: [ tag ]
docker:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
github:
image: plugins/github-release
secrets: [ github_release_api_key ]
files:
- dist/release/*
when:
event: [ tag ]
discord:
image: appleboy/drone-discord
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]
when:
status: [ changed, failure ]