summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨永强 <[email protected]>2021-10-28 01:33:08 +0000
committer杨永强 <[email protected]>2021-10-28 01:33:08 +0000
commit87adc8c36cbd4d03cb7fb895392cd4c0a4811d61 (patch)
treec8fc0bc2e9162237c843591057c759c0ecd0bf87
parent4b2ccf53a7ae3f95831c46898d13810471c97cd5 (diff)
更新.gitlab-ci.yml文件
-rw-r--r--.gitlab-ci.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 01598e8..50ccdb5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,6 +15,9 @@ variables:
before_script:
- echo "环境部署操作"
# 创建对应目录
+ - DATE=$(date +%Y%m%d%H%I%s)
+ - echo $DATE
+ - GIT_CLONE_PATH=$GIT_CLONE_PATH/gap_tsg_api$DATE
- mkdir -p $GIT_CLONE_PATH
- cd $GIT_CLONE_PATH
@@ -53,7 +56,7 @@ master_build:
- echo $DATE
- echo "正式服务器环境配置"
- if [ ! -d ".git" ]; then
- - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH/gap_tsg_api$DATE --depth 1
+ - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
- else
- git stash
- fi