From 082ef6167ea188de4a0439fe63baaca41b19b45b Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 31 Jan 2025 08:14:23 -0500 Subject: terraform: switch to plain hcl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed input 'terranix' • Removed input 'terranix/bats-assert' • Removed input 'terranix/bats-support' • Removed input 'terranix/flake-parts' • Removed input 'terranix/nixpkgs' • Removed input 'terranix/systems' • Removed input 'terranix/terranix-examples' --- terraform/pages.tf | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 terraform/pages.tf (limited to 'terraform/pages.tf') diff --git a/terraform/pages.tf b/terraform/pages.tf new file mode 100644 index 0000000..4b212f1 --- /dev/null +++ b/terraform/pages.tf @@ -0,0 +1,53 @@ +resource "cloudflare_pages_project" "getchoo_website" { + account_id = var.cloudflare_account_id + name = "getchoo-website" + production_branch = "main" + + build_config { + build_caching = true + build_command = "./build-site.sh" + destination_dir = "/dist" + } + + source { + type = "github" + config { + owner = "getchoo" + repo_name = "website" + production_branch = "main" + } + } +} + +resource "cloudflare_pages_domain" "getchoo_website" { + account_id = var.cloudflare_account_id + domain = "getchoo.com" + project_name = "getchoo-website" +} + +resource "cloudflare_pages_project" "teawie_api" { + account_id = var.cloudflare_account_id + name = "teawie-api" + production_branch = "main" + + build_config { + build_caching = true + build_command = "pnpm run lint && pnpm run build" + destination_dir = "/dist" + } + + source { + type = "github" + config { + owner = "getchoo" + repo_name = "teawieAPI" + production_branch = "main" + } + } +} + +resource "cloudflare_pages_domain" "teawie_api" { + account_id = var.cloudflare_account_id + domain = "api.getchoo.com" + project_name = "teawie-api" +} -- cgit v1.2.3