更新.gitlab-ci.yml文件
This commit is contained in:
parent
61a37386e4
commit
37407d45ad
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue