在 Container Platform 中,导航至 Application > Application。
点击 Create。
选择 Create from Code。
参考以下参数说明完成配置。
Region | Parameter | Description |
---|---|---|
Code Repository | Type |
|
Integrated Project Name | 管理员为当前项目分配或关联的集成工具项目名称。 | |
Repository Address | 选择或输入存储源代码的代码仓库地址。 | |
Version Identifier | 支持基于代码仓库中的分支、标签或提交创建应用。其中:
| |
Context dir | 可选的源代码目录,作为构建的上下文目录。 | |
Secret | 使用输入类型代码仓库时,可根据需要添加认证 Secret。 | |
Builder Image |
| |
Version | 选择与源代码兼容的运行时环境版本,确保应用顺利运行。 | |
Build | Build Type | 目前仅支持通过 Build 方式构建应用镜像。该方式简化并自动化了复杂的镜像构建流程,使开发人员专注于代码开发。整体流程如下:
|
Image URL | 构建完成后,指定应用的目标镜像仓库地址。 | |
Application | - | 根据需要填写应用配置,具体详情请参考 Creating applications from Image 文档中的参数说明。 |
Network | - |
|
Label Annotations | - | 根据需要填写相关标签和注解。 |
填写完参数后,点击 Create。
可在 Details 页面查看对应的部署信息。
应用创建完成后,可在详情页查看对应信息。
Parameter | Description |
---|---|
Build | 点击链接查看具体的 Build 和构建任务(BuildRun)资源信息及 YAML。 |
Start Build | 构建失败或源代码变更时,可点击此按钮重新执行构建任务。 |