makefile: add docker-push target

This commit is contained in:
c9s 2020-12-17 16:32:16 +08:00
parent 64dea71249
commit f53fbffd1d

View File

@ -32,4 +32,8 @@ docker:
docker build --build-arg GO_MOD_CACHE=.mod --tag yoanlin/bbgo .
bash -c "[[ -n $(DOCKER_TAG) ]] && docker tag yoanlin/bbgo yoanlin/bbgo:$(DOCKER_TAG)"
docker-push:
docker push yoanlin/bbgo
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
.PHONY: dist