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