From c9ac50d72389992a367d1c4a40773a527ba5004c Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Fri, 22 Jul 2016 19:36:15 +0200 Subject: [PATCH] Updated drone config to 0.5 best practice --- .drone.yml | 13 ++++++++----- .drone.yml.sig | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index b3c8eee..8218d00 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,17 +1,20 @@ +workspace: + base: /go + pipeline: test: image: golang:1.6 environment: - CGO_ENABLED=0 - - GO15VENDOREXPERIMENT=1 - - GOPATH=/drone commands: + - go vet - go test -cover -coverprofile=coverage.out - go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" - docker: - storage_driver: vfs + + latest: + image: docker repo: plugins/docker - tag: [ "latest", "1.0", "1" ] + tags: [ "latest", "1.0", "1" ] when: branch: master event: push diff --git a/.drone.yml.sig b/.drone.yml.sig index 9d401d7..034d2ab 100644 --- a/.drone.yml.sig +++ b/.drone.yml.sig @@ -1 +1 @@ -eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgdGVzdDoKICAgIGltYWdlOiBnb2xhbmc6MS42CiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBDR09fRU5BQkxFRD0wCiAgICAgIC0gR08xNVZFTkRPUkVYUEVSSU1FTlQ9MQogICAgICAtIEdPUEFUSD0vZHJvbmUKICAgIGNvbW1hbmRzOgogICAgICAtIGdvIHRlc3QgLWNvdmVyIC1jb3ZlcnByb2ZpbGU9Y292ZXJhZ2Uub3V0CiAgICAgIC0gZ28gYnVpbGQgLWxkZmxhZ3MgIi1zIC13IC1YIG1haW4uYnVpbGQ9JERST05FX0JVSUxEX05VTUJFUiIKICBkb2NrZXI6CiAgICBzdG9yYWdlX2RyaXZlcjogdmZzCiAgICByZXBvOiBwbHVnaW5zL2RvY2tlcgogICAgdGFnOiBbICJsYXRlc3QiLCAiMS4wIiwgIjEiIF0KICAgIHdoZW46CiAgIC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