Continuous integration GitLab管道配置
我使用GitLab CI进行构建操作。Continuous integration GitLab管道配置,continuous-integration,tags,gitlab-ci,pipeline,Continuous Integration,Tags,Gitlab Ci,Pipeline,我使用GitLab CI进行构建操作。 我只需要在主上游分支上构建我的生产环境,并且只需要一个标签。 现在我有这样的东西: stages: - build - test - deploy build_project: stage: build script: - cd ./some-dir - build-script.sh only: - master - tags 有人知道我应该如何更改规则吗?在Gitab文档中有一个这样做的示例:
我只需要在主上游分支上构建我的生产环境,并且只需要一个标签。
现在我有这样的东西:
stages:
- build
- test
- deploy
build_project:
stage: build
script:
- cd ./some-dir
- build-script.sh
only:
- master
- tags
有人知道我应该如何更改规则吗?在Gitab文档中有一个这样做的示例:
不清楚你在问什么。您想只为主分支和标记运行
build\u项目
作业吗?很抱歉给您带来不便,我只想在主上游(而不是fork)分支上创建标记时运行我的阶段
job:
only:
- branches@gitlab-org/gitlab
except:
- master@gitlab-org/gitlab
- /^release/.*$/@gitlab-org/gitlab