更新.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: build-job:
stage: build stage: build
only:
- develop
- release
script: script:
- git checkout $CI_COMMIT_REF_NAME - git checkout $CI_COMMIT_REF_NAME
# 拷贝到GOPATH # 拷贝到GOPATH
@ -33,6 +36,9 @@ build-job:
deploy-job: deploy-job:
stage: save stage: save
only:
- develop
- release
script: script:
- cd $GOPATH/src/$ProjectPath - cd $GOPATH/src/$ProjectPath
# 拷贝文件 # 拷贝文件
@ -60,6 +66,9 @@ deploy-job:
push_job: push_job:
stage: sync stage: sync
only:
- develop
- release
script: script:
- cd $GOPATH/src/$ProjectPath - cd $GOPATH/src/$ProjectPath
- if [ "$CI_COMMIT_BRANCH" == "develop" ]; then - if [ "$CI_COMMIT_BRANCH" == "develop" ]; then