I have a repo with some code and I have another repo that has the same code, but in a different file structure. This is so that I have the first repo for development and the second repo for deployment to Heroku.
I'm having trouble figuring out how I would push to a different repo. My pipeline is set up something like this:
pipelines:
branches:
master:
- step:
script:
- cd ..
- git clone git@bitbucket.org:themahakuma/jeebito-heroku-deployment.git
- cp -r build/development-repo/. deployment-repo/
- cd deployment-repo/
- git config --global user.email "pipeline@themahakuma.bitbucket.org"
- git config --global user.name "pipeline"
- git add .
- git commit -m "Updating heroku deployment repo"
- git push origin master:master I've tried making the remote url set to use https instead as well. I've tried adding my own credentials and none of it works.