该子命令用于创建一个新的存储库密钥。请注意,该命令需要对存储库拥有推送权限。
1
2
3
4
5
6
7
8
9
10
11
12
|
NAME:
drone secret add - adds a secret
USAGE:
drone secret add [command options] [repo/name]
OPTIONS:
--repository value repository name (e.g. octocat/hello-world)
--name value secret name
--data value secret value
--allow-pull-request permit read access to pull requests
--allow-push-on-pull-request permit write access to pull requests (e.g. allow docker push)
|
Example usage, creates a secret:
1
|
drone secret add --name my_token --data e72e16c7e42f29 octocat/hello-world
|
Example usage, creates a secret from a file:
1
|
drone secret add --name my_token --data @/path/to/secret.json octocat/hello-world
|