-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add support for running infra pipeline when Git tag is pushed with specific name #284
Comments
Based on Azure DevOps documentation, this can be done as a "branch" trigger that starts with
|
I was reading it incorrectly. After trying out various pipeline runs with various branch/tag names, I understand now that the note was saying: if you tag a commit that is also the commit referenced by a branch, then if the branch name happens to satisfy a branch filter, pushing that tag would trigger the pipeline. So this means using |
Updates:
We installed the Terraform extension in
Googling this error, I see a StackOverflow answer from July 2021 that basically says Azure made a change so that free accounts have to make a request in order to be able to run jobs. I'm confused by this because I don't remember us having to do that for MST's pipeline, and we created that in November 2022... See the "Parallel jobs" settings for
I filled out the request form, and it said "it could take 2-3 business days to proceed the request." New planI'm just gonna change the pipeline in my branch to not actually run Terraform and have it run in MST's DevOps org. This will still allow me to test / figure out the correct syntax for all the tag stuff we want to add to the pipeline while ensuring my experiments don't touch anything in MST's Azure environment. |
Our request was approved on 8/23/2023, and I've been able to run my pipeline in |
@thekaveman My next step is to put back the terraform commands and try to get the To work on this though, I need:
Once I have those, I can define a small Terraform file that just creates a Resource Group for my pipeline to run so that it isn't trying to create all the infrastructure for a new eligibility-server. Should I go ahead and set up the subscription, or do you want to do that? The Pay-As-You-Go option requires entering payment information. |
@angela-tran Go for it! You can use your card for now. LMK if you get stuck and I can set it up. |
Things that have to be set up manually in Azure and were done yesterday/today:
|
Something weird I've noticed yesterday and today: There is sometimes a long delay between pushing the tag and the pipeline getting triggered. Earlier I did the following:
The pipeline triggered at 11:20am CT for the new commits on the pull request, then at 11:21am CT for the |
Do in isolated testing environment
azure-pipeline.yml
to be triggered by Git tag for specific naming patternstest
and prod/default
Terraform workspaces (logic is inworkspace.py
)azure-pipeline.yml
to require approval for stage that runsterraform apply
for test/prod deploymentterraform plan
stage to save atfplan
for theapply
command to useMake sure the stage that runsalready works as writtenterraform plan
always runs for test/prod deploymentterraform apply
runs for tag-based test/prod deploymentDone in #307
Make changes to real pipeline
azure-pipeline.yml
to be triggered by Git tag for specific naming patternstest
and prod/default
Terraform workspaces (logic is inworkspace.py
)azure-pipeline.yml
to require approval for stage that runsterraform apply
for test/prod deploymentMake sure the stage that runsalready works as writtenterraform plan
always runs for test/prod deploymentterraform apply
runs for tag-based test/prod deploymentDone in #310
The text was updated successfully, but these errors were encountered: