【发布时间】:2018-01-30 22:13:13
【问题描述】:
.circleci/config.yml 文件中的工作流配置如下所示:
workflows:
version: 2
test-and-deploy-if-tagged:
jobs:
- build-and-test:
filters:
tags:
only: /.*/
- deploy-to-qa:
filters:
tags:
only: /^deploy.*/
branches:
ignore: /.*/
deploy-to-qa 工作流程包括:
deploy-to-qa:
requires:
- build-and-test
在常规的master 提交上,build-and-test 工作流运行。这就是我要的。 ????
当我准备好进行构建时,我……
- 进行新的提交以提高版本号
- 标记新的提交(例如
deploy-build-123)
在我推送新的提交和标签后,CircleCI 运行两次build-and-test 和一次deploy-to-qa。
如何配置它,使标记的版本只运行一次build-and-test,如果通过,则运行deploy-to-qa?
【问题讨论】:
标签: circleci circleci-2.0