Skip to content

Commit

Permalink
Merge pull request #181 from CDCgov/only-stg-is-automatic
Browse files Browse the repository at this point in the history
Dev and Internal Environment Doesn't Automatically Trigger; Staging Automatically Triggers Every Weekday
  • Loading branch information
halprin authored Oct 3, 2024
2 parents 0d6a809 + 9743aaa commit 48e229a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion operations/environments/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ module "template" {

environment = "dev"
deployer_id = "f5feabe7-5d37-40ba-94f2-e5c0760b4561" //github app registration in CDC Azure Entra
cron = "0 30 9 * * Mon,Fri" // Every Monday and Friday at 9:30 AM
cron = "* * * 30 Feb *" //run every second of February 30th, which never happens and is the equivalent of never running. If you want to run this, manually trigger the function in Azure.
}
2 changes: 1 addition & 1 deletion operations/environments/internal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ module "template" {

environment = "internal"
deployer_id = "d59c2c86-de5e-41b7-a752-0869a73f5a60" //github app registration in Flexion Azure Entra
cron = "0 30 9 * * Wed" // Every Wednesday at 9:30 AM
cron = "* * * 30 Feb *" //run every second of February 30th, which never happens and is the equivalent of never running. If you want to run this, manually trigger the function in Azure.
}
3 changes: 1 addition & 2 deletions operations/environments/pr/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ module "template" {

environment = "pr${var.pr_number}"
deployer_id = "d59c2c86-de5e-41b7-a752-0869a73f5a60" //github app registration in Flexion Azure Entra

cron = "0 30 9 * Feb Mon"
cron = "* * * 30 Feb *" //run every second of February 30th, which never happens and is the equivalent of never running. If you want to run this, manually trigger the function in Azure.

depends_on = [
azurerm_resource_group.group,
Expand Down
2 changes: 1 addition & 1 deletion operations/environments/stg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ module "template" {

environment = "stg"
deployer_id = "f5feabe7-5d37-40ba-94f2-e5c0760b4561" //github app registration in CDC Azure Entra
cron = "0 30 9 * * Tue,Thu" // Every Tuesday and Thursday at 9:30 AM
cron = "0 30 9 * * 1-5" // Every weekday at 9:30 AM
}

0 comments on commit 48e229a

Please sign in to comment.