Skip to content

Commit

Permalink
Add our DNSimple billing contact
Browse files Browse the repository at this point in the history
- Set the `DNSIMPLE_ACCOUNT` and `DNSIMPLE_TOKEN` envvars to be able to run this.
- The address here fake because the address in the actual account is the
  address of the cardholder that pays the bill (one of the PLC) and we
  don't want that on the public internet.
  • Loading branch information
issyl0 committed Jul 14, 2024
1 parent 01be30a commit 2b7a6ba
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 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
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]
}

}
1 change: 1 addition & 0 deletions dnsimple/providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
provider "dnsimple" {}

0 comments on commit 2b7a6ba

Please sign in to comment.