setup yaml for drone 0.5
This commit is contained in:
Родитель
ef4cfab783
Коммит
28db5e23c4
27
.drone.yml
27
.drone.yml
|
@ -1,11 +1,12 @@
|
|||
build:
|
||||
pipeline:
|
||||
test:
|
||||
image: golang:1.6
|
||||
commands:
|
||||
- make deps
|
||||
- make gen_assets gen_migration
|
||||
- make test
|
||||
dist:
|
||||
|
||||
build:
|
||||
image: golang:1.6
|
||||
commands:
|
||||
- make test_mysql
|
||||
|
@ -13,21 +14,17 @@ build:
|
|||
when:
|
||||
event: push
|
||||
|
||||
compose:
|
||||
publish:
|
||||
docker:
|
||||
repo: lgtm/lgtm
|
||||
tag: [latest, 1.0.0]
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:5.6.27
|
||||
environment:
|
||||
- MYSQL_DATABASE=test
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||
|
||||
#publish:
|
||||
# docker:
|
||||
# username: drone
|
||||
# password: $$DOCKER_PASS
|
||||
# email: $$DOCKER_EMAIL
|
||||
# repo: lgtm/lgtm
|
||||
# tag:
|
||||
# - "latest"
|
||||
# - "1.0.0"
|
||||
# when:
|
||||
# branch: master
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgdGVzdDoKICAgIGltYWdlOiBnb2xhbmc6MS42CiAgICBjb21tYW5kczoKICAgICAgLSBtYWtlIGRlcHMKICAgICAgLSBtYWtlIGdlbl9hc3NldHMgZ2VuX21pZ3JhdGlvbgogICAgICAtIG1ha2UgdGVzdAoKICBidWlsZDoKICAgIGltYWdlOiBnb2xhbmc6MS42CiAgICBjb21tYW5kczoKICAgICAtIG1ha2UgdGVzdF9teXNxbAogICAgIC0gbWFrZSBidWlsZAogICAgd2hlbjoKICAgICAgZXZlbnQ6IHB1c2gKCiAgcHVibGlzaDoKICAgIGRvY2tlcjoKICAgICAgcmVwbzogbGd0bS9sZ3RtCiAgICAgIHRhZzogW2xhdGVzdCwgMS4wLjBdCiAgICAgIHdoZW46CiAgICAgICAgYnJhbmNoOiBtYXN0ZXIKICAgICAgICBldmVudDogcHVzaAoKc2VydmljZXM6CiAgbXlzcWw6CiAgICBpbWFnZTogbXlzcWw6NS42LjI3CiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBNWVNRTF9EQVRBQkFTRT10ZXN0CiAgICAgIC0gTVlTUUxfQUxMT1dfRU1QVFlfUEFTU1dPUkQ9eWVzCg.--k3PDuNmbbbgXX5pp-7ifuEXHLFGSh47YFBFjKFxxM
|
Загрузка…
Ссылка в новой задаче