You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have been trying to push my changes to heroku app deployment platform. I am exactly what is wrong with it. I am getting this error message which pipeline fails :
+ bash ./deploy.bash origin
Initializing push to the specified environment: origin
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have generated SSH key on my machine. Uploaded public key to heroku account and private key in my bitbucket account as an environment variable.
pipelines: branches: master: - step: script: - mkdir -p ~/.ssh - cat known_hosts >> ~/.ssh/known_hosts - (umask 077; echo $MY_SSH_KEY | base64 -di > ~/.ssh/my_ssh_key) - bash ./deploy.bash origin
MESSAGE="Initializing push to the specified environment: $1"
if [ $1 == "origin" ]; then
echo $MESSAGE git push $1 $BITBUCKET_BRANCH:master else echo "The specified environment is not valid. Use \"origin\"." fi