You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| org\_project\_creators | Additional list of members to have project creator role accross the organization. Prefix of group: user: or serviceAccount: is required. |`list(string)`|`[]`| no |
65
65
| parent\_folder | GCP parent folder ID in the form folders/{id} |`string`|`""`| no |
66
+
| project\_auto\_create\_network | Create the default network for the project created. |`bool`|`false`| no |
66
67
| project\_deletion\_policy | The deletion policy for the project created. |`string`|`"PREVENT"`| no |
67
68
| project\_id | Custom project ID to use for project created. If not supplied, the default id is {project\_prefix}-seed-{random suffix}. |`string`|`""`| no |
68
69
| project\_labels | Labels to apply to the project. |`map(string)`|`{}`| no |
Copy file name to clipboardExpand all lines: examples/cloudbuild_repo_connection_github/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ For GitHub connections you will need:
10
10
11
11
- Install the [Cloud Build App](https://github.com/apps/google-cloud-build) on Github.
12
12
- Create a [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) on Github with [scopes](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes)`repo` and `read:user` (or if app is installed in a organization use `read:org`).
13
+
- Create two [Google Secret Manager](https://cloud.google.com/secret-manager/docs/overview) secrets, one for the Cloud Build App and one for the Personal Access Token.
14
+
- Populate the corresponding [secret versions](https://cloud.google.com/secret-manager/docs/add-secret-version) of each one of the secrets.
13
15
14
16
For more information on this topic refer to the Cloud Build repositories (2nd gen) documentation for
15
17
[Connect to a GitHub repository](https://cloud.google.com/build/docs/automating-builds/github/connect-repo-github?generation=2nd-gen).
@@ -19,8 +21,8 @@ For more information on this topic refer to the Cloud Build repositories (2nd ge
19
21
20
22
| Name | Description | Type | Default | Required |
Copy file name to clipboardExpand all lines: examples/cloudbuild_repo_connection_gitlab/README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,15 @@ The example will create Cloud Build repositories (2nd gen) using a Gitlab connec
4
4
5
5
## Gitlab Requirements for Cloud Build Connection
6
6
7
-
When using a Cloud Build repositories (2nd gen) GitLab repository, a Cloud Build connection to your repository provider will be needed.
7
+
When using a Cloud Build repositories (2nd gen) GitLab repository, a Cloud Build connection to your repository provider will be created.
8
+
9
+
For GitLab connections you will need:
10
+
11
+
- Create a [Personal Access Token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) on GitLab with [scope](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#personal-access-token-scopes)`api`.
12
+
- Create a [Personal Access Token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) on GitLab with [scope](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#personal-access-token-scopes)`read_api`.
13
+
- Create a [webhook](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html)
14
+
- Create three [Google Secret Manager](https://cloud.google.com/secret-manager/docs/overview) secrets, one for the `api` token, one for the `read_api` token, and one for the `webhook`.
15
+
- Populate the corresponding [secret versions](https://cloud.google.com/secret-manager/docs/add-secret-version) of each one of the secrets.
8
16
9
17
For more information on this topic refer to the Cloud Build repositories (2nd gen) documentation:
10
18
-[Connect to a GitLab host](https://cloud.google.com/build/docs/automating-builds/gitlab/connect-host-gitlab)
@@ -15,8 +23,9 @@ For more information on this topic refer to the Cloud Build repositories (2nd ge
15
23
16
24
| Name | Description | Type | Default | Required |
0 commit comments