@author.io/drone
v1.0.10
Published
A utility for applying common secrets to multiple repos within a drone CI/CD environment.
Downloads
27
Readme
cicd-drone-config
Install: npm i -g @author.io/drone
Run: $ dronecfg
Overview:
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.
For example:
Quick Config
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.
Timeouts
By default, there is a 30000 millisecond (30 second) timeout on network requests. This can be overridden using the --timeout
flag.
As an example, a 60 second timeout would be configured as shown:
dronecfg --timeout 60000
Environment Variables
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.
Removing Secrets
To remove secrets, launch the wizard with the --remove
or --rm
flag.
Examples:
dronecfg --remove
dronecfg --rm