Skip to content

Commit

Permalink
Merge pull request #7 from Homebrew/dnsimple-contacts
Browse files Browse the repository at this point in the history
Add our DNSimple billing contact
  • Loading branch information
issyl0 authored Jul 14, 2024
2 parents 1bd7586 + 1e513a2 commit e216d00
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
- name: OpenTofu Plan
env:
GITHUB_TOKEN: ${{ secrets.TF_GH_TOKEN }}
run: tofu plan -no-color -var-file .tfvars -detailed-exitcode
DNSIMPLE_ACCOUNT: ${{ secrets.TF_DNSIMPLE_ACCOUNT }}
DNSIMPLE_TOKEN: ${{ secrets.TF_DNSIMPLE_TOKEN }}
run: tofu plan -no-color -var-file .tfvars -detailed-exitcode

trivy:
name: Trivy
Expand Down Expand Up @@ -81,4 +83,4 @@ jobs:
echo '```'
echo "</details>"
} >> $GITHUB_STEP_SUMMARY
fi
fi
43 changes: 43 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions dnsimple/contacts.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "dnsimple_contact" "ocf" {
label = "Open Collective Foundation"
first_name = "Homebrew"
last_name = "Maintainers"
email = "[email protected]"

phone = "+1 555 1234"
address1 = "123 Homebrew Street"
city = "Homebrew"
state_province = "HB"
postal_code = "00001"
country = "United States"

lifecycle {
ignore_changes = [address1, city, state_province, postal_code, phone]
}

}
Empty file added dnsimple/providers.tf
Empty file.
6 changes: 5 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ locals {
unmanagable_members = ["p-linnane", "issyl0", "colindean", "MikeMcQuaid", "BrewSponsorsBot"]
}

module "dnsimple" {
source = "./dnsimple"
}

module "github" {
source = "./github"
teams = var.teams
Expand All @@ -39,4 +43,4 @@ module "google-mailinglists" {
ops = module.github.ops
tsc = module.github.tsc
plc = module.github.plc
}
}

0 comments on commit e216d00

Please sign in to comment.