Skip to content

Commit

Permalink
Check for DRONE instead of CI within Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Mar 26, 2019
1 parent 17f6954 commit 1ca0f60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1ca0f60

Please sign in to comment.