Fixed passing of env variable
This commit is contained in:
parent
8f3a894c32
commit
bcb9c9459e
10
Makefile
10
Makefile
@ -7,19 +7,19 @@ UPDATE_VENDOR = 1
|
|||||||
.PHONY: build build-debug test deb
|
.PHONY: build build-debug test deb
|
||||||
|
|
||||||
build: .bin-image
|
build: .bin-image
|
||||||
docker run -t --rm -e PACKAGER=$(PACKAGER) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(BIN_IMAGE) make build
|
docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(BIN_IMAGE) make build
|
||||||
|
|
||||||
build-debug: .bin-image
|
build-debug: .bin-image
|
||||||
docker run -t --rm -e PACKAGER=$(PACKAGER) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(BIN_IMAGE) make build-debug
|
docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(BIN_IMAGE) make build-debug
|
||||||
|
|
||||||
test: .bin-image
|
test: .bin-image
|
||||||
docker run -t --rm -e PACKAGER=$(PACKAGER) -v $(CURDIR):/src $(BIN_IMAGE) make test
|
docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src $(BIN_IMAGE) make test
|
||||||
|
|
||||||
test-all: .bin-image
|
test-all: .bin-image
|
||||||
docker run -t --rm -e PACKAGER=$(PACKAGER) -v $(CURDIR):/src $(BIN_IMAGE) make test-all
|
docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src $(BIN_IMAGE) make test-all
|
||||||
|
|
||||||
deb: .deb-image
|
deb: .deb-image
|
||||||
docker run -t --rm -e PACKAGER=$(PACKAGER) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE)
|
docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE)
|
||||||
|
|
||||||
build-images:
|
build-images:
|
||||||
rm -f .bin-image .deb-image
|
rm -f .bin-image .deb-image
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
UPDATE_VENDOR=1
|
UPDATE_VENDOR ?= 1
|
||||||
|
|
||||||
build: prepare-sources
|
build: prepare-sources
|
||||||
cd $(GOPATH)/src/blockbook && go build -o $(CURDIR)/blockbook -ldflags="-s -w"
|
cd $(GOPATH)/src/blockbook && go build -o $(CURDIR)/blockbook -ldflags="-s -w"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user