Drone CI 中文文档

发布提升构建 (drone build promote)

该子命令用于将构建提升发布到目标环境。请注意,该命令需要对存储库拥有推送权限。

1
2
3
4
5
6
7
8
NAME:
   drone build promote - promote a build

USAGE:
   drone build promote [command options] <repo/name> <build> <environment>

OPTIONS:
   --param value, -p value  custom parameters to be injected into the job environment.

以下是通过构建号提升发布构建的示例用法:

1
drone build promote octocat/hello-world 42 production

以下是使用自定义参数的示例用法:

1
2
3
$ drone build promote octocat/hello-world 42 production \
  --param=foo=bar \
  --param=baz=qux \