commit | fd35a4c990c048a5a9fa00cb3025f43f98e8a778 | [log] [tgz] |
---|---|---|
author | Tang Cheng <cheng.tang@supwisdom.com> | 周四 10月 24 17:18:37 2019 +0800 |
committer | Tang Cheng <cheng.tang@supwisdom.com> | 周四 10月 24 17:18:37 2019 +0800 |
tree | f1128cdbd3140f51ecf7a930201f36ba8ddc3f31 | |
parent | 0f2c9a92ac8a17d7946ea1aab2bdc4db9153943d [diff] [blame] |
优化编译release版本docker tag 问题
diff --git a/Makefile b/Makefile index ffe6866..0793a4c 100644 --- a/Makefile +++ b/Makefile
@@ -6,7 +6,9 @@ DISTANCE=$(shell echo $(VERSION) | awk -F'-' '{print $$2}') HASH=$(shell echo $(VERSION) | awk -F'-' '{print $$3}') -ifneq ($(DISTANCE), 0) +ifeq ($(DISTANCE),) +IMAGE_VERSION=$(TAG) +else ifneq ($(DISTANCE), 0) IMAGE_VERSION=dev else IMAGE_VERSION=$(TAG)