Skip to content

Commit

Permalink
add googleverification
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeket committed Jun 6, 2024
1 parent 22ec7cf commit 0ec5a54
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/destroy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
TF_VAR_FORUM_ROOT_NAME: ${{ secrets.FORUM_ROOT_NAME }}
TF_VAR_TG_ACTIVE_GROUP_IDS: ${{ secrets.TG_ACTIVE_GROUP_IDS }}
TF_VAR_TG_ADMIN_GROUP_IDS: ${{ secrets.TG_ADMIN_GROUP_IDS }}
TF_VAR_GOOGLEVERIFICATION: ${{ secrets.GOOGLEVERIFICATION }}
TF_TOKEN_app_terraform_io: ${{ secrets.TF_API_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/pr-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
TF_VAR_FORUM_ROOT_NAME: ${{ secrets.FORUM_ROOT_NAME }}
TF_VAR_TG_ACTIVE_GROUP_IDS: ${{ secrets.TG_ACTIVE_GROUP_IDS }}
TF_VAR_TG_ADMIN_GROUP_IDS: ${{ secrets.TG_ADMIN_GROUP_IDS }}
TF_VAR_GOOGLEVERIFICATION: ${{ secrets.GOOGLEVERIFICATION }}
TF_TOKEN_app_terraform_io: ${{ secrets.TF_API_TOKEN }}
id: plan
run: tofu plan -no-color -input=false -out plan
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ jobs:
TF_VAR_FORUM_ROOT_NAME: ${{ secrets.FORUM_ROOT_NAME }}
TF_VAR_TG_ACTIVE_GROUP_IDS: ${{ secrets.TG_ACTIVE_GROUP_IDS }}
TF_VAR_TG_ADMIN_GROUP_IDS: ${{ secrets.TG_ADMIN_GROUP_IDS }}
TF_VAR_GOOGLEVERIFICATION: ${{ secrets.GOOGLEVERIFICATION }}
TF_TOKEN_app_terraform_io: ${{ secrets.TF_API_TOKEN }}
run: tofu apply -input=false -auto-approve
7 changes: 7 additions & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ resource "digitalocean_record" "mx" {
name = "@"
priority = 1
value = "SMTP.GOOGLE.COM."
}

resource "digitalocean_record" "googleverification" {
domain = digitalocean_domain.hytky.name
type = "TXT"
name = "@"
value = var.GOOGLEVERIFICATION
}
6 changes: 6 additions & 0 deletions infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ variable "TG_ADMIN_GROUP_IDS" {
description = "Comma separated Telegram Admin Group IDs"
type = string
sensitive = true
}

variable "GOOGLEVERIFICATION" {
description = "TXT record for Google Workspace verification"
type = string
sensitive = true
}

0 comments on commit 0ec5a54

Please sign in to comment.