Wondering what’s next for npm?Check out our public roadmap! »

    @author.io/drone

    1.0.10 • Public • Published

    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:

    setup

    reposelect

    secret

    done

    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

    secretsource

    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

    secretsource

    Install

    npm i @author.io/drone

    DownloadsWeekly Downloads

    34

    Version

    1.0.10

    License

    MIT

    Unpacked Size

    9.93 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar