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:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
|
|
|
pull: true
|
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:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
|
|
|
pull: true
|
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:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
|
|
|
pull: true
|
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:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
2017-12-10 11:00:15 +00:00
|
|
|
pull: true
|
|
|
|
group: golang
|
|
|
|
commands:
|
|
|
|
- make build_linux_amd64
|
|
|
|
|
|
|
|
build_linux_i386:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
2017-12-10 11:00:15 +00:00
|
|
|
pull: true
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
2017-12-10 11:00:15 +00:00
|
|
|
- make build_linux_i386
|
2017-08-15 04:26:00 +00:00
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
build_linux_arm64:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
2017-12-10 11:00:15 +00:00
|
|
|
pull: true
|
2017-08-25 05:51:04 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
2017-12-10 11:00:15 +00:00
|
|
|
- make build_linux_arm64
|
2017-08-25 05:51:04 +00:00
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
build_linux_arm:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
2017-12-10 11:00:15 +00:00
|
|
|
pull: true
|
2017-08-25 05:51:04 +00:00
|
|
|
group: golang
|
|
|
|
commands:
|
2017-12-10 11:00:15 +00:00
|
|
|
- make build_linux_arm
|
2017-08-25 05:51:04 +00:00
|
|
|
|
2017-08-15 04:26:00 +00:00
|
|
|
coverage:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
|
|
|
pull: true
|
2017-08-15 04:26:00 +00:00
|
|
|
group: golang
|
|
|
|
secrets: [ android_test_token, android_api_key ]
|
|
|
|
commands:
|
2018-04-22 01:17:16 +00:00
|
|
|
- make unit-test-coverage
|
|
|
|
|
|
|
|
generate-coverage:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
2018-04-22 01:17:16 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- make coverage
|
|
|
|
when:
|
|
|
|
event: [ push, pull_request ]
|
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:
|
2018-04-22 01:17:16 +00:00
|
|
|
- coverage.all
|
2017-07-21 01:18:52 +00:00
|
|
|
when:
|
|
|
|
event: [ push, pull_request ]
|
2016-12-07 08:46:27 +00:00
|
|
|
|
2016-12-08 03:43:23 +00:00
|
|
|
release:
|
2018-05-21 02:01:54 +00:00
|
|
|
image: golang:1.10
|
2016-12-08 03:43:23 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- make release
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|
|
|
|
|
2017-08-25 05:51:04 +00:00
|
|
|
publish_linux_amd64:
|
2016-12-07 08:46:27 +00:00
|
|
|
image: plugins/docker
|
2017-12-09 09:44:02 +00:00
|
|
|
group: release
|
|
|
|
pull: true
|
2017-08-25 05:51:04 +00:00
|
|
|
secrets: [ docker_username, docker_password ]
|
2017-12-09 09:44:02 +00:00
|
|
|
default_tags: true
|
2017-08-25 05:51:04 +00:00
|
|
|
repo: ${DRONE_REPO}
|
|
|
|
when:
|
2017-12-09 09:44:02 +00:00
|
|
|
event: [ push, tag ]
|
2017-12-09 09:54:19 +00:00
|
|
|
local: false
|
|
|
|
|
|
|
|
publish_linux_alpine:
|
|
|
|
image: plugins/docker
|
|
|
|
group: release
|
|
|
|
pull: true
|
|
|
|
dockerfile: Dockerfile.alpine
|
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
default_tags: true
|
|
|
|
default_suffix: alpine
|
|
|
|
repo: ${DRONE_REPO}
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2017-12-10 11:00:15 +00:00
|
|
|
local: false
|
|
|
|
|
|
|
|
publish_linux_i386:
|
|
|
|
image: plugins/docker
|
|
|
|
group: release
|
|
|
|
pull: true
|
|
|
|
dockerfile: Dockerfile.i386
|
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
default_tags: true
|
|
|
|
default_suffix: i386
|
|
|
|
repo: ${DRONE_REPO}
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2017-05-12 03:39:18 +00:00
|
|
|
local: false
|
2016-08-06 15:01:27 +00:00
|
|
|
|
2017-10-28 06:44:51 +00:00
|
|
|
publish_linux_arm:
|
|
|
|
image: plugins/docker
|
2017-12-09 09:44:02 +00:00
|
|
|
group: release
|
|
|
|
pull: true
|
2017-10-28 06:44:51 +00:00
|
|
|
dockerfile: Dockerfile.arm
|
|
|
|
secrets: [ docker_username, docker_password ]
|
2017-12-09 09:44:02 +00:00
|
|
|
default_tags: true
|
|
|
|
default_suffix: arm
|
|
|
|
repo: ${DRONE_REPO}
|
2017-10-28 06:44:51 +00:00
|
|
|
when:
|
2017-12-09 09:44:02 +00:00
|
|
|
event: [ push, tag ]
|
2017-10-28 06:44:51 +00:00
|
|
|
local: false
|
|
|
|
|
|
|
|
publish_linux_arm64:
|
|
|
|
image: plugins/docker
|
2017-12-09 09:44:02 +00:00
|
|
|
group: release
|
|
|
|
pull: true
|
2017-10-28 06:44:51 +00:00
|
|
|
dockerfile: Dockerfile.arm64
|
|
|
|
secrets: [ docker_username, docker_password ]
|
2017-12-09 09:44:02 +00:00
|
|
|
default_tags: true
|
|
|
|
default_suffix: arm64
|
|
|
|
repo: ${DRONE_REPO}
|
2017-10-28 06:44:51 +00:00
|
|
|
when:
|
2017-12-09 09:44:02 +00:00
|
|
|
event: [ push, tag ]
|
2017-10-28 06:44:51 +00:00
|
|
|
local: false
|
|
|
|
|
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 ]
|
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
|