2016-12-07 07:43:17 +00:00
|
|
|
workspace:
|
2017-06-25 05:42:40 +00:00
|
|
|
base: /go/src
|
|
|
|
path: github.com/appleboy/gorush
|
2016-12-07 07:43:17 +00:00
|
|
|
|
2017-05-04 03:09:07 +00:00
|
|
|
clone:
|
|
|
|
git:
|
2017-01-12 14:18:24 +00:00
|
|
|
image: plugins/git
|
2017-04-30 10:17:17 +00:00
|
|
|
depth: 50
|
2017-01-12 14:18:24 +00:00
|
|
|
tags: true
|
|
|
|
|
2017-05-04 03:09:07 +00:00
|
|
|
pipeline:
|
2017-08-15 04:26:00 +00:00
|
|
|
deps:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
2016-08-06 15:01:27 +00:00
|
|
|
commands:
|
2017-02-25 12:31:49 +00:00
|
|
|
- make deps
|
2017-08-15 04:26:00 +00:00
|
|
|
- make embedmd
|
|
|
|
|
|
|
|
lint:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
2016-12-07 09:37:43 +00:00
|
|
|
- make vet
|
|
|
|
- make lint
|
2017-08-15 04:26:00 +00:00
|
|
|
|
|
|
|
vendor:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
2017-06-01 07:52:01 +00:00
|
|
|
- make test-vendor
|
2017-06-05 02:42:07 +00:00
|
|
|
- make misspell-check
|
|
|
|
- make fmt-check
|
2017-08-15 04:26:00 +00:00
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
build_linux_amd64:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
2017-08-18 15:39:03 +00:00
|
|
|
- make docker_build
|
2017-08-15 04:26:00 +00:00
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
build_linux_arm64:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-25 05:51:04 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
|
|
|
- make docker_build_arm64
|
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
build_linux_arm:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-25 05:51:04 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
|
|
|
- make docker_build_arm
|
|
|
|
|
2017-08-15 04:26:00 +00:00
|
|
|
coverage:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
|
|
|
secrets: [ android_test_token, android_api_key ]
|
|
|
|
commands:
|
2016-12-07 09:00:22 +00:00
|
|
|
- coverage all
|
2017-07-21 01:18:52 +00:00
|
|
|
|
|
|
|
codecov:
|
|
|
|
image: robertstettner/drone-codecov
|
2017-07-21 13:48:49 +00:00
|
|
|
secrets: [ codecov_token ]
|
2017-07-21 01:18:52 +00:00
|
|
|
files:
|
|
|
|
- .cover/coverage.txt
|
|
|
|
when:
|
|
|
|
event: [ push, pull_request ]
|
2016-12-07 08:46:27 +00:00
|
|
|
|
2016-12-08 03:43:23 +00:00
|
|
|
release:
|
2017-10-10 03:36:12 +00:00
|
|
|
image: appleboy/golang-testing:1.9.1
|
2016-12-08 03:43:23 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- make release
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|
|
|
|
branch: [ refs/tags/* ]
|
|
|
|
|
2017-08-25 05:51:04 +00:00
|
|
|
publish_linux_amd64:
|
2016-12-07 08:46:27 +00:00
|
|
|
image: plugins/docker
|
2017-08-25 05:51:04 +00:00
|
|
|
group: publish
|
2017-05-12 03:39:18 +00:00
|
|
|
repo: ${DRONE_REPO}
|
|
|
|
tags: [ 'latest' ]
|
2017-05-04 03:09:07 +00:00
|
|
|
secrets: [ docker_username, docker_password ]
|
2016-12-07 08:46:27 +00:00
|
|
|
when:
|
2017-05-12 03:39:18 +00:00
|
|
|
event: [ push ]
|
|
|
|
branch: [ master ]
|
|
|
|
local: false
|
2016-12-07 08:46:27 +00:00
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
publish_linux_arm:
|
2016-12-07 08:46:27 +00:00
|
|
|
image: plugins/docker
|
2017-08-25 05:51:04 +00:00
|
|
|
group: publish
|
|
|
|
repo: ${DRONE_REPO}
|
2017-08-31 06:25:56 +00:00
|
|
|
tags: [ linux-arm ]
|
|
|
|
dockerfile: Dockerfile.arm
|
2017-08-25 05:51:04 +00:00
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
when:
|
|
|
|
event: [ push ]
|
|
|
|
branch: [ master ]
|
|
|
|
local: false
|
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
publish_linux_arm64:
|
2017-08-25 05:51:04 +00:00
|
|
|
image: plugins/docker
|
|
|
|
group: publish
|
|
|
|
repo: ${DRONE_REPO}
|
2017-08-31 06:25:56 +00:00
|
|
|
tags: [ linux-arm64 ]
|
|
|
|
dockerfile: Dockerfile.arm64
|
2017-08-25 05:51:04 +00:00
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
when:
|
|
|
|
event: [ push ]
|
|
|
|
branch: [ master ]
|
|
|
|
local: false
|
|
|
|
|
|
|
|
publish_tag_linux_amd64:
|
|
|
|
image: plugins/docker
|
|
|
|
group: tag
|
2017-05-12 03:39:18 +00:00
|
|
|
repo: ${DRONE_REPO}
|
|
|
|
tags: [ '${DRONE_TAG}' ]
|
2017-05-04 03:09:07 +00:00
|
|
|
secrets: [ docker_username, docker_password ]
|
2017-05-12 03:39:18 +00:00
|
|
|
group: release
|
2016-12-07 08:46:27 +00:00
|
|
|
when:
|
2017-05-12 03:39:18 +00:00
|
|
|
event: [ tag ]
|
|
|
|
branch: [ refs/tags/* ]
|
|
|
|
local: false
|
2016-08-06 15:01:27 +00:00
|
|
|
|
2017-05-12 03:39:18 +00:00
|
|
|
release_tag:
|
2016-12-08 03:43:23 +00:00
|
|
|
image: plugins/github-release
|
2017-05-12 03:39:18 +00:00
|
|
|
secrets: [ github_release_api_key ]
|
|
|
|
group: release
|
2016-12-08 03:43:23 +00:00
|
|
|
files:
|
|
|
|
- dist/release/*
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|
|
|
|
branch: [ refs/tags/* ]
|
2017-05-12 03:39:18 +00:00
|
|
|
local: false
|
2016-12-08 03:43:23 +00:00
|
|
|
|
2017-10-14 05:02:45 +00:00
|
|
|
discord:
|
|
|
|
image: appleboy/drone-discord
|
2017-05-04 03:09:07 +00:00
|
|
|
pull: true
|
2017-10-14 05:02:45 +00:00
|
|
|
secrets: [ discord_webhook_id, discord_webhook_token ]
|
2017-05-04 03:09:07 +00:00
|
|
|
when:
|
2017-10-14 05:02:45 +00:00
|
|
|
status: [ success, failure ]
|
2017-05-04 03:09:07 +00:00
|
|
|
|
2016-08-06 15:01:27 +00:00
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|