3.5. requestRepoBuild
请求构建存储库并从指定的输入推送。
POST /api/v1/repository/{repository}/build/
授权: oauth2_implicit (存储库:写)
路径参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
path |
需要 仓库 | 存储库的完整路径。例如 namespace/name | 字符串 |
请求正文模式(application/json)
新存储库构建的描述。
名称 | 描述 | 模式 |
---|---|---|
file_id | 上传构建 spec 时生成的文件 ID | 字符串 |
archive_url | 要构建的 .tar.gz 的 URL。必须以 "http" 或 "https" 开头。 | 字符串 |
子目录 | 可在其中找到 Dockerfile 的子目录。您只能指定这个或 dockerfile_path | 字符串 |
dockerfile_path | 到 dockerfile 的路径。您只能指定此或子目录。 | 字符串 |
上下文 | 传递 dockerfile 的上下文。这是可选的。 | 字符串 |
pull_robot | 用作拉取凭证的 Quay 机器人帐户的用户名 | string |
标签 | 构建的镜像要推送到的标签。如果没有指定,则使用 "latest"。 |
string 数组 |