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

Feat: infra pipeline tag trigger #310

Merged
merged 4 commits into from
Aug 31, 2023
Merged

Feat: infra pipeline tag trigger #310

merged 4 commits into from
Aug 31, 2023

Conversation

angela-tran
Copy link
Member

@angela-tran angela-tran commented Aug 31, 2023

Closes #284

This PR makes it possible for our existing pipeline in MST's DevOps to be triggered by pushing a git tag.

The only thing not defined in code here is the Environment which needs to be created manually and configured manually.

  • Create environment in MST's DevOps

@angela-tran angela-tran self-assigned this Aug 31, 2023
@angela-tran angela-tran requested a review from a team as a code owner August 31, 2023 01:01
@angela-tran angela-tran force-pushed the feat/infra-tag-trigger branch 3 times, most recently from 108e642 to d1ceddf Compare August 31, 2023 01:17
@angela-tran
Copy link
Member Author

Need to look at this a little closer - specifically the condition for the terraform plan job step

@angela-tran angela-tran marked this pull request as draft August 31, 2023 01:27
# service connection
environmentServiceNameAzureRM: deployer
# the plan is done as part of the apply (below), so don't bother doing it twice
condition: notIn(variables['Build.SourceBranchName'], 'dev', 'test', 'prod')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer need a condition on the terraform plan step because it should always run.

@angela-tran angela-tran marked this pull request as ready for review August 31, 2023 14:39
@angela-tran
Copy link
Member Author

This is ready for review

thekaveman
thekaveman previously approved these changes Aug 31, 2023
Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @angela-tran!! Huge props for making so much progress in a short amount of time 👍

terraform/pipeline/azure-pipelines.yml Show resolved Hide resolved
terraform/pipeline/azure-pipelines.yml Show resolved Hide resolved
terraform/pipeline/azure-pipelines.yml Outdated Show resolved Hide resolved
terraform/pipeline/tag.py Show resolved Hide resolved
@angela-tran angela-tran merged commit fc8a431 into dev Aug 31, 2023
6 checks passed
@angela-tran angela-tran deleted the feat/infra-tag-trigger branch August 31, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for running infra pipeline when Git tag is pushed with specific name
2 participants