terraform - 特定文件更改的触发管道
问题描述
我正在尝试构建一个 CI/CD 管道,以便它仅在将新更改推送到分支中的特定文件时运行。更具体地说,如果将更改推送到 terraform/modules或terraform/environments/dev。如何包含 2 个条件?如果我这样做,是在暗示 OR 还是 AND?
condition:
changesets:
includePaths:
- "terraform/modules*"
- "terraform/environments/dev"
pipelines:
branches:
master:
- step:
name: 'Navigate to Prod'
script:
- cd terraform/environments/prod
condition:
changesets:
includePaths:
- "terraform/modules"
- "terraform/environments/dev"
我的意思是,当对terraform/modules和terraform/environments/dev进行更改时,它会运行吗
或者当其中任何一个发生更改时
解决方案
推荐阅读
- java - Eclipse 错误:可以从多个模块访问包 javax.xml.namespace:
, java.xml - python - 我正在尝试下载 Django-heroku。但我收到此错误:找不到 pg_config 可执行文件。,如何解决?
- asp.net-core - 将 EF Core 对象属性设为私有后为空
- visual-studio-code - VSCode自定义字体连字,将两个符号显示为一个?
- nunit - 特性分支上的 Azure 数据工厂 ADF 单元测试,无需将更改部署到数据工厂实例
- javascript - 在不同的 Vuex 模块中提交突变
- html - 使用 CSS 删除第二次出现的选择结果
- php - 在通过模拟定义期望时,PHPUnit 将测试标记为有风险
- asp.net-core - AspnetCore 3.1 OpenIdConnectEvent 使用来自 ClaimActions.MapJsonKey 的声明
- html - 使最后一行有更多列,但与前一行的宽度相同