Skip to content

Commit

Permalink
feat: improve makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Apr 18, 2023
1 parent f699baa commit 8721db5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,21 @@ build: $(BUILD_DEPS)


.PHONY: docker


TAG:=test
docker: $(BUILD_DEPS)
curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/docker/dockerfile
ifdef DOCKERFILE
cp $(DOCKERFILE) ./dockerfile
else
curl -o dockerfile https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/docker/dockerfile
endif

docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) --build-arg BUILD_TARGET=venus -t venus .
docker tag venus:latest filvenus/venus:$(TAG)

ifdef PRIVATE_REGISTRY
docker tag venus:latest $(PRIVATE_REGISTRY)/filvenus/venus:$(TAG)
endif


docker-push: docker
docker push $(PRIVATE_REGISTRY)/filvenus/venus:$(TAG)

0 comments on commit 8721db5

Please sign in to comment.