更新.gitlab-ci.yml文件

This commit is contained in:
skeleton 2024-10-15 13:15:55 +00:00
parent 61a37386e4
commit 37407d45ad
1 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,9 @@ default:
build-job:
stage: build
only:
- develop
- release
script:
- git checkout $CI_COMMIT_REF_NAME
# 拷贝到GOPATH
@ -33,6 +36,9 @@ build-job:
deploy-job:
stage: save
only:
- develop
- release
script:
- cd $GOPATH/src/$ProjectPath
# 拷贝文件
@ -60,6 +66,9 @@ deploy-job:
push_job:
stage: sync
only:
- develop
- release
script:
- cd $GOPATH/src/$ProjectPath
- if [ "$CI_COMMIT_BRANCH" == "develop" ]; then