Skip to content

Commit

Permalink
continue on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrodal committed Sep 12, 2024
1 parent 9e3ec57 commit 297f478
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/modules/dns/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ resource "terraform_data" "custom_domain" {

provisioner "local-exec" {
command = "az containerapp hostname add --hostname ${self.input.public_hostname} -g ${self.input.resource_group_name} -n ${self.input.container_app_name}"
on_failure = continue
}
provisioner "local-exec" {
command = "az containerapp hostname bind --hostname ${self.input.public_hostname} -g ${self.input.resource_group_name} -n ${self.input.container_app_name} --environment ${self.input.container_app_environment_name} --validation-method CNAME"
on_failure = continue
}
provisioner "local-exec" {
when = destroy
command = "az containerapp hostname delete --hostname ${self.input.public_hostname} -g ${self.input.resource_group_name} -n ${self.input.container_app_name} --yes"
on_failure = continue
}
}

0 comments on commit 297f478

Please sign in to comment.