-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move pages tf logic to use modules (#66)
- Loading branch information
1 parent
e1e7580
commit feb645b
Showing
12 changed files
with
118 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ node_modules | |
Thumbs.db | ||
|
||
# Env | ||
.env | ||
.env.* | ||
!.env.example | ||
!.env.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export TF_VAR_cloudflare_account_id="op://tf/cloudflare/account_id" | ||
export TF_VAR_cloudflare_api_token="op://tf/cloudflare/api_token" | ||
export TF_VAR_tf_state_postgres_conn_str="op://tf/tf_state/postgres_conn_str" | ||
export TF_VAR_env=$ENVIRONMENT |
13 changes: 0 additions & 13 deletions
13
deployment/modules/cloudflare/static-pages/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module "static_pages" { | ||
source = "git::https://github.com/immich-app/devtools.git//tf/shared/modules/cloudflare-pages?ref=main" | ||
|
||
cloudflare_api_token = data.terraform_remote_state.api_keys_state.outputs.terraform_key_cloudflare_docs | ||
cloudflare_account_id = data.terraform_remote_state.cloudflare_account.outputs.cloudflare_account_id | ||
|
||
pages_project = data.terraform_remote_state.cloudflare_account.outputs.pages_projects["${var.app_name}.immich.app"] | ||
|
||
app_name = var.app_name | ||
stage = var.stage | ||
env = var.env | ||
} | ||
|
||
output "pages_branch" { | ||
value = module.static_pages.pages_branch | ||
} | ||
|
||
output "immich_subdomain" { | ||
value = module.static_pages.branch_subdomain | ||
} | ||
|
||
output "pages_branch_subdomain" { | ||
value = module.static_pages.pages_branch_subdomain | ||
} | ||
|
||
output "pages_project_name" { | ||
value = module.static_pages.pages_project_name | ||
} |
Oops, something went wrong.