From f53fbffd1d7db65197619370b05c799dcbba4473 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 17 Dec 2020 16:32:16 +0800 Subject: [PATCH] makefile: add docker-push target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8dc3ac61b..fd234a2e8 100644 --- a/Makefile +++ b/Makefile @@ -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