这个子命令用来更新一个仓库,这个子命令需要登录认证以及对应仓库的管理员权限。
NAME:
drone repo update - update a repository
USAGE:
drone repo update [command options] [arguments...]
OPTIONS:
--trusted repository is trusted
--gated repository is gated
--timeout value repository timeout (default: 0s)
--visibility value repository visibility
--config value repository configuration path (e.g. .drone.yml)
--build-counter value repository starting build number (default: 0)
--unsafe validate updating the build-counter is unsafe
更新 trusted 标签的示例:
$ drone repo update octocat/hello-world --truted=true
更新 gated 标签的示例:
$ drone repo update octocat/hello-world --gated=true
更新超时的示例:
$ drone repo update octocat/hello-world --timeout=90m
更新 drone.yml 的示例:
$ drone repo update octocat/hello-world --config=.github/.drone.yml