更新.gitlab-ci.yml文件

This commit is contained in:
杨永强
2021-10-27 08:02:19 +00:00
parent 67a9a220eb
commit 45c638c783

View File

@@ -25,23 +25,23 @@ after_script:
# 全局定义流水线阶段pipeline
stages:
- build
# my-tag_build:
# stage: build
# #需要执行的shell脚本
# script:
# - echo "开发服务器环境配置"
# - if [ ! -d ".git" ]; then
# - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
# - else
# - git stash
# - fi
# - git pull
# only:
# # 指定分支
# - master
# tags:
# # 指定执行作业的runner
# - developRunner
develop_build:
stage: build
#需要执行的shell脚本
script:
- echo "开发服务器环境配置"
- if [ ! -d ".git" ]; then
- git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
- else
- git stash
- fi
- git pull
only:
# 指定分支
- develop
tags:
# 指定执行作业的runner
- develop
master_build:
stage: build