From e14967ef2a4667fc351dd91fb93a627af8f18f5c Mon Sep 17 00:00:00 2001 From: zhoushx1018 Date: Mon, 20 Jun 2022 17:58:47 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=96=B0=E5=A2=9E=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Makefile b/Makefile index 57beab3..814e3ec 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,8 @@ K8S_DEPLOY_PARAM_RESOURCE_SUFFIX=$(GIT_BRANCH) K8S_DEPLOY_PARAM_ARC_PREFIX=$(ACR_PREFIX) TMP_FILE_DEPLOY=.tmp.deploy.txt +TMP_DATA_DIR=tmpData +CONFIGFILES_PROJECT_NAME=configfiles #GIT_BRANCH=master-rd @@ -107,6 +109,26 @@ deployK8s: docker echo !!!!! no docker building in branch $(GIT_BRANCH) !!!!!!; \ fi +configfiles: + @echo ==get configfiles== + @echo $(GIT_BRANCH) + @if [[ $(GIT_BRANCH) = $(BRANCH_MASTER) ]]; then\ + mkdir -p $(TMP_DATA_DIR); \ + cd $(TMP_DATA_DIR); \ + [ ! -e $(CONFIGFILES_PROJECT_NAME) ] && git clone https://git.pandaminer.com/ox/$(CONFIGFILES_PROJECT_NAME); \ + cd $(CONFIGFILES_PROJECT_NAME); \ + echo currDir:; \ + pwd; \ + git fetch; \ + git checkout $(GIT_BRANCH); \ + git reset --hard origin/$(GIT_BRANCH); \ + cd ../..; \ + echo currDir:; \ + pwd; \ + cp ./$(TMP_DATA_DIR)/$(CONFIGFILES_PROJECT_NAME)/$(CURR_MODEL_NAME)/pack/.service.config.yaml ./pack/.service.config.yaml; \ + else \ + echo !!!!! no configfiles process in branch $(GIT_BRANCH) !!!!!!; \ + fi build: buildquick