diff options
| author | 杨永强 <[email protected]> | 2021-10-28 01:29:04 +0000 |
|---|---|---|
| committer | 杨永强 <[email protected]> | 2021-10-28 01:29:04 +0000 |
| commit | 4b2ccf53a7ae3f95831c46898d13810471c97cd5 (patch) | |
| tree | 09ccd0dd44f95d688903ffee70746213d940310a | |
| parent | 0910b633feee70586a5d99a6161e68ca927daa04 (diff) | |
更新.gitlab-ci.yml文件
| -rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 071e5f6..01598e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ #定义变量 variables: #定义克隆的路径 $CI_BUILDS_DIR 为 runners.builds_dir 设置的路径 - GIT_CLONE_PATH: $CI_BUILDS_DIR/server/link + GIT_CLONE_PATH: $CI_BUILDS_DIR/gitlab-runner #git ssh 地址 GITLAB_SSH: [email protected]:yangyongqiang/yyq_test.git @@ -53,7 +53,7 @@ master_build: - echo $DATE - echo "正式服务器环境配置" - if [ ! -d ".git" ]; then - - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1 + - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH/gap_tsg_api$DATE --depth 1 - else - git stash - fi |
