From cc943f9cc7aed5293ec3abcd344bec3ff39ea893 Mon Sep 17 00:00:00 2001 From: francisco souza Date: Mon, 25 Nov 2019 17:39:55 -0500 Subject: [PATCH] drone: fix build process We need to build the binary on tag so it can be included in the docker image. --- drone/ci.jsonnet | 2 +- drone/ci.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drone/ci.jsonnet b/drone/ci.jsonnet index 88c8c2d6..d8bd178c 100644 --- a/drone/ci.jsonnet +++ b/drone/ci.jsonnet @@ -101,7 +101,7 @@ local build(go_version) = { environment: { CGO_ENABLED: '0' }, depends_on: ['mod-download'], when: { - event: ['pull_request', 'push'], + event: ['pull_request', 'push', 'tag'], }, }; diff --git a/drone/ci.yml b/drone/ci.yml index 27463d1f..ffbd8c66 100644 --- a/drone/ci.yml +++ b/drone/ci.yml @@ -51,6 +51,7 @@ steps: event: - pull_request - push + - tag depends_on: - mod-download @@ -165,6 +166,7 @@ steps: event: - pull_request - push + - tag depends_on: - mod-download