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