Skip to content

Commit

Permalink
chore: remove immich-app cloudflare pages project (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard committed Jul 2, 2024
1 parent 91c9aba commit 3537fe6
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions deployment/modules/cloudflare/account/pages-project.tf
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
resource "cloudflare_pages_project" "immich_app" {
resource "cloudflare_pages_project" "immich_app_archive" {
account_id = var.cloudflare_account_id
name = "immich-app"
name = "immich-app-archive"
production_branch = "we-will-never-use-this"

lifecycle {
ignore_changes = [
build_config,
build_config["build_caching"],
build_config["web_analytics_tag"],
build_config["web_analytics_token"],
]
}
}

output "immich_app_pages_project_name" {
value = cloudflare_pages_project.immich_app.name
}

output "immich_app_pages_project_subdomain" {
value = cloudflare_pages_project.immich_app.subdomain
}


resource "cloudflare_pages_project" "immich_app_archive" {
account_id = var.cloudflare_account_id
name = "immich-app-archive"
production_branch = "we-will-never-use-this"
}

output "immich_app_archive_pages_project_name" {
value = cloudflare_pages_project.immich_app_archive.name
}
Expand All @@ -37,6 +24,14 @@ resource "cloudflare_pages_project" "immich_app_preview" {
account_id = var.cloudflare_account_id
name = "immich-app-preview"
production_branch = "we-will-never-use-this"

lifecycle {
ignore_changes = [
build_config["build_caching"],
build_config["web_analytics_tag"],
build_config["web_analytics_token"],
]
}
}

output "immich_app_preview_pages_project_name" {
Expand All @@ -51,6 +46,14 @@ resource "cloudflare_pages_project" "my_immich_app" {
account_id = var.cloudflare_account_id
name = "my-immich-app"
production_branch = "main"

lifecycle {
ignore_changes = [
build_config["build_caching"],
build_config["web_analytics_tag"],
build_config["web_analytics_token"],
]
}
}

output "my_immich_app_pages_project_name" {
Expand Down

0 comments on commit 3537fe6

Please sign in to comment.