diff --git a/.drone.yml b/.drone.yml index b8785fa..65afe32 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,17 @@ +# NOTE: Refer drone Go example http://readme.drone.io/0.5/usage/golang-example/ +workspace: + base: /go + path: src/github.com/josebarn/drone-with-go + pipeline: build: - image: ${IMAGE} - commands: + image: golang + script: + - go get - go build unit-test: - image: ${IMAGE} + image: golang commands: - go test ./api @@ -16,7 +22,3 @@ pipeline: dockerfile: ./docker/Dockerfile secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ] # debug: true - -matrix: - IMAGE: - - golang:latest diff --git a/.drone.yml.sig b/.drone.yml.sig index 9867f1a..a7a151c 100644 --- a/.drone.yml.sig +++ b/.drone.yml.sig @@ -1 +1 @@ -eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogJHtJTUFHRX0KICAgIGNvbW1hbmRzOgogICAgICAtIGdvIGJ1aWxkCgogIHVuaXQtdGVzdDoKICAgIGltYWdlOiAke0lNQUdFfQogICAgY29tbWFuZHM6CiAgICAgIC0gZ28gdGVzdCAuL2FwaQoKICBwdWJsaXNoOgogICAgaW1hZ2U6IHBsdWdpbnMvZG9ja2VyCiAgICByZXBvOiBqb3NlYmFybi9oZWxsby13b3JsZAogICAgdGFnczogWyAxLjAuMCwgMS4wLCBsYXRlc3QgXQogICAgZG9ja2VyZmlsZTogLi9kb2NrZXIvRG9ja2VyZmlsZQogICAgc2VjcmV0czogWyBET0NLRVJfVVNFUk5BTUUsIERPQ0tFUl9QQVNTV09SRCBdCiMgICAgZGVidWc6IHRydWUKCm1hdHJpeDoKICBJTUFHRToKICAgIC0gZ29sYW5nOmxhdGVzdAo.RcZK8spWTs9bg735GpZ6POc5AzFNjWNKhhm-LQGWdRU \ No newline at end of file +eyJhbGciOiJIUzI1NiJ9.IyBOT1RFOiBSZWZlciBkcm9uZSBHbyBleGFtcGxlIGh0dHA6Ly9yZWFkbWUuZHJvbmUuaW8vM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