Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run terraform pipeline for changes to terraform files #1736

Closed
thekaveman opened this issue Sep 20, 2023 · 3 comments
Closed

Only run terraform pipeline for changes to terraform files #1736

thekaveman opened this issue Sep 20, 2023 · 3 comments
Labels
chore Chores and tasks for code cleanup, dev experience, admin/configuration settings, etc. infrastructure Terraform, Azure, etc.

Comments

@thekaveman
Copy link
Member

E.g. under triggers:

  # only run for changes to Terraform files
  paths:
    include:
      - terraform/*

See https://github.com/cal-itp/eligibility-server/blob/dev/terraform/pipeline/azure-pipelines.yml#L11

@thekaveman thekaveman added chore Chores and tasks for code cleanup, dev experience, admin/configuration settings, etc. infrastructure Terraform, Azure, etc. labels Sep 20, 2023
@thekaveman
Copy link
Member Author

@angela-tran
Copy link
Member

angela-tran commented Sep 22, 2023

Wait we already have this filter?

https://github.com/cal-itp/benefits/blob/dev/terraform/azure-pipelines.yml#L12

That only applies to the trigger section which covers branches and tags. (In Azure docs, this section is referred to as CI triggers.)

At the same level as trigger, you can define a pr section which will need its own path filter section. (Azure docs call this PR triggers.) If you omit the pr section, it is treated the same as if you defined:

pr:
  branches:
    include:
    - '*'

which does not have a path filter.

@thekaveman
Copy link
Member Author

This doesn't seem like a problem we need to address right now.

@thekaveman thekaveman closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chores and tasks for code cleanup, dev experience, admin/configuration settings, etc. infrastructure Terraform, Azure, etc.
Projects
Archived in project
Development

No branches or pull requests

2 participants