From baa64b97909b427b9b0c7fc7b917133524b6371f Mon Sep 17 00:00:00 2001 From: josebarn Date: Wed, 16 Aug 2017 09:35:52 -0300 Subject: [PATCH] adding conditional publish for only master and rename integ test step in pipeline --- .drone.yml | 5 +++-- .drone.yml.sig | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index d77cae7..c060269 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ pipeline: commands: - go test ./api - run-tests-in-compose: + integration-tests: image: michalpodeszwa/docker-compose:latest volumes: - /var/run/docker.sock:/var/run/docker.sock @@ -30,7 +30,8 @@ pipeline: dockerfile: ./docker/Dockerfile secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ] # debug: true - + when: + branch: [master] matrix: IMAGE: - golang:latest diff --git a/.drone.yml.sig b/.drone.yml.sig index 26cbc1c..b1bc1ce 100644 --- a/.drone.yml.sig +++ b/.drone.yml.sig @@ -1 +1 @@ -eyJhbGciOiJIUzI1NiJ9.IyBOT1RFOiBSZWZlciBkcm9uZSBHbyBleGFtcGxlIGh0dHA6Ly9yZWFkbWUuZHJvbmUuaW8vMC41L3VzYWdlL2dvbGFuZy1leGFtcGxlLwp3b3Jrc3BhY2U6CiAgYmFzZTogL2dvCiAgcGF0aDogc3JjL2dpdGh1Yi5jb20vam9zZWJhcm4vZHJvbmUtd2l0aC1nbwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogJHtJTUFHRX0KICAgIGNvbW1hbmRzOgogICAgICAtIGdvIGdldCAuLy4uLgogICAgICAtIGdvIGJ1aWxkCiAgICBkZWJ1ZzogdHJ1ZQoKICB1bml0LXRlc3Q6CiAgICBpbWFnZTogJHtJTUFHRX0KICAgIGNvbW1hbmRzOgogICAgICAtIGdvIHRlc3QgLi9hcGkKCiAgcnVuLXRlc3RzLWluLWNvbXBvc2U6CiAgICBpbWFnZTogbWljaGFscG9kZXN6d2EvZG9ja2VyLWNvbXBvc2U6b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