drone secret add

This subcommand adds a secret to your repository secret store. Please note this command requires administrative privilege to the repository.


NAME:
   drone secret add - adds a secret

USAGE:
   drone secret add [command options] [arguments...]

OPTIONS:
   --repository value  repository name (e.g. octocat/hello-world)
   --name value        secret name
   --value value       secret value
   --event value       secret limited to these events
   --image value       secret limited to these images
   


Example usage:

$ drone secret add \
  --repository octocat/hello-world \
  --name docker_password \
  --value ...

Example usage limits the secret to a specific image:

$ drone secret add \
  --repository octocat/hello-world \
  --name docker_password \
+ --image plugins/docker \
  --value ...

Example usage limits the secret to specific hook events:

$ drone secret add \
  --repository octocat/hello-world \
  --name docker_password \
  --image plugins/docker \
+ --event push \
+ --event pull_request \
+ --event tag \
+ --event deployment \
  --value ...

Example usage adds the secret from a file:

$ drone secret add \
  --repository octocat/hello-world \
  --name ssh_key \
+ --value @/root/.ssh/id_rsa

Is there a mistake on this page? Please let us know or edit this page.