Skip to content

Instantly share code, notes, and snippets.

@jimthedev
Last active November 4, 2019 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimthedev/e3e3ffe7294769b5f6149657e81b6ff2 to your computer and use it in GitHub Desktop.
Save jimthedev/e3e3ffe7294769b5f6149657e81b6ff2 to your computer and use it in GitHub Desktop.
  1. Download and drone 0.8.0 (or whatever version of drone we are on) from: https://github.com/drone/drone-cli/releases/tag/v0.8.6

  2. chmod +x drone so that you can run the drone executable

  3. Get your Drone personal access token from: https://drone.bdp-core.com/account/token

  4. Execute the following (it is case sensitive!).

Replace My_Example_Drone_Personal_Key with your Drone personal token.

Replace my-example-ui-repo-name with your repository's name (BEWARE: the SPSCommerce part is case sensitive!)

Replace My_Example_Github_Key with your github key

./drone \
    -s https://drone.bdp-core.com \
    -t My_Example_Drone_Personal_Key \
    secret add \
    --repository SPSCommerce/my-example-ui-repo-name \
    --name GH_TOKEN \
    --event push \
    --event pull_request \
    --event tag \
    --event deployment \
    --value My_Example_Github_Key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment