diff --git a/website/deploy/main.tf b/website/deploy/main.tf index 355172679..cb29badd0 100644 --- a/website/deploy/main.tf +++ b/website/deploy/main.tf @@ -31,6 +31,7 @@ resource "github_repository_webhook" "main" { configuration { content_type = "json" url = "https://api.netlify.com/hooks/github" + insecure_ssl = false } depends_on = ["netlify_site.main"] @@ -46,7 +47,8 @@ Netlify Resources resource "netlify_deploy_key" "key" {} resource "netlify_site" "main" { - name = "${var.name}" + name = "${var.name}" + custom_domain = "${var.custom_site_domain}" repo { repo_branch = "${var.github_branch}" diff --git a/website/deploy/variables.tf b/website/deploy/variables.tf index 087738341..3fcee45c5 100644 --- a/website/deploy/variables.tf +++ b/website/deploy/variables.tf @@ -12,3 +12,8 @@ variable "github_branch" { default = "stable-website" description = "GitHub branch which netlify will continuously deploy." } + +variable "custom_site_domain" { + default = "packer.io" + description = "The custom domain to use for the Netlify site." +} \ No newline at end of file