From 74263482429995ad51c5974cb80cf8aa11b0917f Mon Sep 17 00:00:00 2001 From: Francisco Souza Date: Mon, 22 Jul 2019 11:28:09 -0400 Subject: [PATCH] drone: set CGO_ENABLED=0 on build Related to #51. --- drone/.drone.jsonnet | 1 + drone/.drone.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/drone/.drone.jsonnet b/drone/.drone.jsonnet index dbdb0f5d76..f3ef32e5ce 100644 --- a/drone/.drone.jsonnet +++ b/drone/.drone.jsonnet @@ -84,6 +84,7 @@ local build(go_version) = { name: 'build', image: 'golang:%(go_version)s' % { go_version: go_version }, commands: ['go build -o fake-gcs-server -mod readonly'], + environment: { CGO_ENABLED: '0' }, depends_on: ['mod-download'], }; diff --git a/drone/.drone.yml b/drone/.drone.yml index cd3ab2af94..3623b2d57d 100644 --- a/drone/.drone.yml +++ b/drone/.drone.yml @@ -39,6 +39,8 @@ steps: image: golang:1.12.7 commands: - go build -o fake-gcs-server -mod readonly + environment: + CGO_ENABLED: 0 depends_on: - mod-download @@ -141,6 +143,8 @@ steps: image: golang:1.11.12 commands: - go build -o fake-gcs-server -mod readonly + environment: + CGO_ENABLED: 0 depends_on: - mod-download @@ -197,6 +201,8 @@ steps: image: golang:1.13beta1 commands: - go build -o fake-gcs-server -mod readonly + environment: + CGO_ENABLED: 0 depends_on: - mod-download