当前版本的drone secret命令如何使用?

How do I use the drone secret command in the current version?

我想将 ssh 密钥添加到我的 drone 机密中,但无法使命令起作用。我已经尝试了在各种 Whosebug/documentation 页面上找到的命令的许多版本,但其中 none 有效。命令帮助还提供了与文档中完全不同的语法...

来自the documentation

drone secret add \
  --repository <registry> \
  --image <image> \
  --name <name> \
  --value <value>

这对我不起作用。

然后我发现 关于将 ssh 密钥添加到机密中的内容。答案又显示了不同的语法,我这样试了,还是不行。

当我尝试使用命令时,我得到这个:

Incorrect Usage.

NAME: drone secret add - adds a secret

USAGE: drone secret add [command options] [repo] [key] [value]

OPTIONS: --event [--event option --event option] inject the secret for these event types --image [--image option --image option] inject the secret for these image types --input input secret value from a file --skip-verify skip verification for the secret --conceal conceal secret in build logs

这表明它应该像这样使用:

drone secret add user/repo SSH_KEY <my_id_rsa>

但这也不管用。

那么这个命令的实际使用方法是什么?

原来有一个选项可以在 Web 界面中添加机密,在 repo 的设置页面中。我完全错过了它,文档也没有提到它。

所以不需要使用命令行。