npm i -g @author.io/drone
This is a command line utility for mass creation/modification/removal of drone.io secrets. It's a simple wizard that prompts for connection details, scans all available projects into a multiple-choice list, and allows the user to add/update secrets to all selected repos simultaneously.
If there are a lot of secrets, a JSON file can be used as the source of secrets.
dronecfg --file /path/to/env.json
This can be especially useful if the project already leverages localenvironment or an alternative environment manager.
By default, there is a 30000 millisecond (30 second) timeout on network requests. This can be overridden using the
As an example, a 60 second timeout would be configured as shown:
dronecfg --timeout 60000
Environment variables are often used as secrets in CI/CD processes. To simplify the transition of environment variables to the drone CI/CD service, this utility will look for an
env.json file. If one is found, it will prompt you to optionally include its values as secrets.
To remove secrets, launch the wizard with the