Browse Source

add: 新增配置文件的处理

zhoushx1018 3 years ago
parent
commit
0cb3b2c085
  1. 22
      Makefile

22
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); \
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

Loading…
Cancel
Save