diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8e0e31..b241c12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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