diff --git a/.drone.yml b/.drone.yml index 119659d..763c980 100644 --- a/.drone.yml +++ b/.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 diff --git a/.drone.yml.sig b/.drone.yml.sig new file mode 100644 index 0000000..0c0d394 --- /dev/null +++ b/.drone.yml.sig @@ -0,0 +1 @@ +eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgdGVzdDoKICAgIGltYWdlOiBnb2xhbmc6MS42CiAgICBjb21tYW5kczoKICAgICAgLSBtYWtlIGRlcHMKICAgICAgLSBtYWtlIGdlbl9hc3NldHMgZ2VuX21pZ3JhdGlvbgogICAgICAtIG1ha2UgdGVzdAoKICBidWlsZDoKICAgIGltYWdlOiBnb2xhbmc6MS42CiAgICBjb21tYW5kczoKICAgICAtIG1ha2UgdGVzdF9teXNxbAogICAgIC0gbWFrZSBidWlsZAogICAgd2hlbjoKICAgICAgZXZlbnQ6IHB1c2gKCiAgcHVibGlzaDoKICAgIGRvY2tlcjoKICAgICAgcmVwbzogbGd0bS9sZ3RtCiAgICAgIHRhZzogW2xhdGVzdCwgMS4wLjBdCiAgICAgIHdoZW46CiAgICAgICAgYnJhbmNoOiBtYXN0ZXIKICAgICAgICBldmVudDogcHVzaAoKc2VydmljZXM6CiAgbXlzcWw6CiAgICBpbWFnZTogbXlzcWw6NS42LjI3CiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBNWVNRTF9EQVRBQkFTRT10ZXN0CiAgICAgIC0gTVlTUUxfQUxMT1dfRU1QVFlfUEFTU1dPUkQ9eWVzCg.--k3PDuNmbbbgXX5pp-7ifuEXHLFGSh47YFBFjKFxxM \ No newline at end of file