-
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
-
chmod +x drone
so that you can run the drone executable -
Get your Drone personal access token from: https://drone.bdp-core.com/account/token
-
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