File tree 3 files changed +11
-5
lines changed 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ terraform {
3
3
}
4
4
5
5
locals {
6
- env = path_relative_to_include ()
7
- project_id = get_env (" GOOGLE_PROJECT" , " static-ct" )
8
- location = get_env (" GOOGLE_REGION" , " us-central1" )
9
- base_name = get_env (" TESSERA_BASE_NAME" , " ${ local . env } -cloudbuild" )
6
+ env = path_relative_to_include ()
7
+ project_id = get_env (" GOOGLE_PROJECT" , " static-ct" )
8
+ location = get_env (" GOOGLE_REGION" , " us-central1" )
9
+ base_name = get_env (" TESSERA_BASE_NAME" , " ${ local . env } -cloudbuild" )
10
+ github_owner = get_env (" GITHUB_OWNER" , " transparency-dev" )
10
11
}
11
12
12
13
remote_state {
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
76
76
location = var. location
77
77
78
78
github {
79
- owner = " transparency-dev "
79
+ owner = var . github_owner
80
80
name = " static-ct"
81
81
push {
82
82
branch = " ^main$"
Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ variable "docker_env" {
17
17
description = " Unique identifier for the Docker env, e.g. dev or ci or prod"
18
18
type = string
19
19
}
20
+
21
+ variable "github_owner" {
22
+ description = " GitHub owner used in Cloud Build trigger repository mapping"
23
+ type = string
24
+ }
You can’t perform that action at this time.
0 commit comments