From 1ca0f60094379a0a57a97f79b4b52b2b1888d23a Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 26 Mar 2019 14:25:04 +0100 Subject: [PATCH] Check for DRONE instead of CI within Makefile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a6a5caf..97ec644 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ release-dirs: .PHONY: release-windows release-windows: -ifeq ($(CI),drone) +ifeq ($(DRONE),true) xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME) mv /build/* $(DIST)/binaries else @@ -107,7 +107,7 @@ endif .PHONY: release-linux release-linux: -ifeq ($(CI),drone) +ifeq ($(DRONE),true) xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME) mv /build/* $(DIST)/binaries else @@ -116,7 +116,7 @@ endif .PHONY: release-darwin release-darwin: -ifeq ($(CI),drone) +ifeq ($(DRONE),true) xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME) mv /build/* $(DIST)/binaries else