更新.gitlab-ci.yml文件
This commit is contained in:
@@ -25,23 +25,23 @@ after_script:
|
|||||||
# 全局定义流水线阶段(pipeline)
|
# 全局定义流水线阶段(pipeline)
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
develop_build:
|
# my-tag_build:
|
||||||
stage: build
|
# stage: build
|
||||||
#需要执行的shell脚本
|
# #需要执行的shell脚本
|
||||||
script:
|
# script:
|
||||||
- echo "开发服务器环境配置"
|
# - echo "开发服务器环境配置"
|
||||||
- if [ ! -d ".git" ]; then
|
# - if [ ! -d ".git" ]; then
|
||||||
- git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
|
# - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
|
||||||
- else
|
# - else
|
||||||
- git stash
|
# - git stash
|
||||||
- fi
|
# - fi
|
||||||
- git pull
|
# - git pull
|
||||||
only:
|
# only:
|
||||||
# 指定分支
|
# # 指定分支
|
||||||
- master
|
# - master
|
||||||
tags:
|
# tags:
|
||||||
# 指定执行作业的runner
|
# # 指定执行作业的runner
|
||||||
- developRunner
|
# - developRunner
|
||||||
|
|
||||||
master_build:
|
master_build:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -56,4 +56,4 @@ master_build:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- masterRunner
|
- my-tag
|
||||||
Reference in New Issue
Block a user