更新.gitlab-ci.yml文件

This commit is contained in:
skeleton 2024-10-16 01:08:21 +00:00
parent a4f6aab012
commit 216d84c669
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ build-job:
only: only:
- develop - develop
- release - release
resource_group: $RESOURCE_GROUP
script: script:
- git checkout $CI_COMMIT_REF_NAME - git checkout $CI_COMMIT_REF_NAME
# 拷贝到GOPATH # 拷贝到GOPATH
@ -39,6 +40,7 @@ save-job:
only: only:
- develop - develop
- release - release
resource_group: $RESOURCE_GROUP
script: script:
- cd $GOPATH/src/$ProjectPath - cd $GOPATH/src/$ProjectPath
# 拷贝文件 # 拷贝文件
@ -69,6 +71,7 @@ sync_job:
only: only:
- develop - develop
- release - release
resource_group: $RESOURCE_GROUP
script: script:
- cd $GOPATH/src/$ProjectPath - cd $GOPATH/src/$ProjectPath
- if [ "$CI_COMMIT_BRANCH" == "develop" ]; then - if [ "$CI_COMMIT_BRANCH" == "develop" ]; then