Created
May 4, 2017 07:04
-
-
Save Deepakkothandan/661966697eea41512f7cd90890a81ec0 to your computer and use it in GitHub Desktop.
bitbucket-create-deployment-key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
KEY="contents_of_public_key_here" | |
LABEL=some_custom_label | |
AUTH=username:password | |
curl -X POST --user $AUTH \ | |
https://api.bitbucket.org/1.0/repositories/username/repo_name/deploy-keys \ | |
--data-urlencode "key=$KEY" --data "label=$LABEL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment