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
description="Region to provision all resources created by this example"
14
+
default="us-south"
15
+
}
16
+
17
+
variable"prefix" {
18
+
type=string
19
+
description="Prefix to append to all resources created by this example"
20
+
default="ce-build"
21
+
}
22
+
23
+
variable"resource_group" {
24
+
type=string
25
+
description="The name of an existing resource group to provision resources in to. If not set a new resource group will be created using the prefix variable"
| <aname="input_container_registry_api_key"></a> [container\_registry\_api\_key](#input\_container\_registry\_api\_key)| The API key for the container registry in the target account. This is only used if 'output\_secret' is not set and a new registry secret needs to be created. If not provided, the IBM Cloud API key (ibmcloud\_api\_key) will be used instead. |`string`|`null`| no |
62
+
| <aname="input_container_registry_namespace"></a> [container\_registry\_namespace](#input\_container\_registry\_namespace)| The name of the namespace to create in IBM Cloud Container Registry for organizing container images. Must be set if 'output\_image' is not set. |`string`|`null`| no |
57
63
| <aname="input_existing_resource_group_id"></a> [existing\_resource\_group\_id](#input\_existing\_resource\_group\_id)| The ID of an existing resource group where build will be provisioned. This must be the same resource group in which the code engine project was created. |`string`| n/a | yes |
58
64
| <aname="input_ibmcloud_api_key"></a> [ibmcloud\_api\_key](#input\_ibmcloud\_api\_key)| The IBM Cloud API key. |`string`| n/a | yes |
59
65
| <aname="input_name"></a> [name](#input\_name)| The name of the build. |`string`| n/a | yes |
60
-
| <aname="input_output_image"></a> [output\_image](#input\_output\_image)| The name of the image. |`string`| n/a | yes |
61
-
| <aname="input_output_secret"></a> [output\_secret](#input\_output\_secret)| The secret that is required to access the image registry. |`string`| n/a | yes |
66
+
| <aname="input_output_image"></a> [output\_image](#input\_output\_image)| A container image can be identified by a container image reference with the following structure: registry / namespace / repository:tag. [Learn more](https://cloud.ibm.com/docs/codeengine?topic=codeengine-getting-started).<br/><br/>If not provided, the value will be derived from the 'container\_registry\_namespace' input variable, which must not be null in that case. |`string`|`null`| no |
67
+
| <aname="input_output_secret"></a> [output\_secret](#input\_output\_secret)| The secret that is required to access the IBM Cloud Container Registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace. If not provided, it will be created using the value of 'container\_registry\_api\_key'; if that is not set, 'ibmcloud\_api\_key' will be used instead. |`string`|`null`| no |
68
+
| <aname="input_prefix"></a> [prefix](#input\_prefix)| Prefix appended to the container registry namespace and registry secret if created. |`string`|`null`| no |
62
69
| <aname="input_project_id"></a> [project\_id](#input\_project\_id)| The ID of the project where build will be created. |`string`| n/a | yes |
63
70
| <aname="input_region"></a> [region](#input\_region)| The region in which to provision the build. This must be the same region in which the code engine project was created. |`string`|`"us-south"`| no |
64
71
| <aname="input_source_context_dir"></a> [source\_context\_dir](#input\_source\_context\_dir)| The directory in the repository that contains the buildpacks file or the Dockerfile. |`string`|`null`| no |
65
72
| <aname="input_source_revision"></a> [source\_revision](#input\_source\_revision)| Commit, tag, or branch in the source repository to pull. |`string`|`null`| no |
66
-
| <aname="input_source_secret"></a> [source\_secret](#input\_source\_secret)| The name of the secret that is used access the repository source. If the var.source\_type value is `local`, this field must be omitted. |`string`|`null`| no |
67
-
| <aname="input_source_type"></a> [source\_type](#input\_source\_type)| Specifies the type of source to determine if your build source is in a repository or based on local source code. |`string`|`null`| no |
73
+
| <aname="input_source_secret"></a> [source\_secret](#input\_source\_secret)| The name of the secret that is used access the repository source. If the var.source\_type value is `local`, this input must be omitted. |`string`|`null`| no |
74
+
| <aname="input_source_type"></a> [source\_type](#input\_source\_type)| Specifies the type of source to determine if your build source is in a repository or based on local source code. If the value is `local`, then 'source\_secret' input must be omitted. |`string`|`null`| no |
68
75
| <aname="input_source_url"></a> [source\_url](#input\_source\_url)| The URL of the code repository. |`string`| n/a | yes |
69
76
| <aname="input_strategy_size"></a> [strategy\_size](#input\_strategy\_size)| The size for the build, which determines the amount of resources used. |`string`|`null`| no |
70
77
| <aname="input_strategy_spec_file"></a> [strategy\_spec\_file](#input\_strategy\_spec\_file)| The path to the specification file that is used for build strategies for building an image. |`string`|`null`| no |
71
-
| <aname="input_strategy_type"></a> [strategy\_type](#input\_strategy\_type)| The strategy to use for building the image. |`string`|n/a|yes|
78
+
| <aname="input_strategy_type"></a> [strategy\_type](#input\_strategy\_type)| The strategy to use for building the image. |`string`|`"dockerfile"`|no|
72
79
| <aname="input_timeout"></a> [timeout](#input\_timeout)| The maximum amount of time, in seconds, that can pass before the build must succeed or fail. |`number`|`600`| no |
0 commit comments