Skip to content

Commit

Permalink
fix variable not availble in cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirkamara committed Oct 7, 2023
1 parent f575d58 commit 348b48d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/devcontainer_run_command/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ runs:
-e TRE_ID="${{ inputs.TRE_ID }}" \
-e TF_VAR_tre_id="${{ inputs.TRE_ID }}" \
-e TRE_URL="${{ env.TRE_URL }}" \
-e TF_VAR_tre_url="${{ env.TRE_URL }}" \
-e TEST_WORKSPACE_APP_ID="${{ inputs.TEST_WORKSPACE_APP_ID }}" \
-e TEST_WORKSPACE_APP_SECRET="${{ inputs.TEST_WORKSPACE_APP_SECRET }}" \
-e TEST_APP_ID="${{ inputs.TEST_APP_ID }}" \
Expand Down
19 changes: 19 additions & 0 deletions core/terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions core/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,8 @@ variable "is_cosmos_defined_throughput" {
variable "tre_url" {
type = string
default = ""
validation {
condition = startswith(var.tre_url, "http") && length(var.tre_url) > 10
error_message = "Invalid tre_url. Must start with http or https."
}
}

0 comments on commit 348b48d

Please sign in to comment.