<span>I used the <a href="https://bitbucket.org/atlassian/aws-s3-deploy/src/master/" target="_blank" rel="noopener noreferrer">AWS deploy S3</a> pipeline as a template. So the ci_scripts are pretty much the same.</span>
My build step is currently failing at a script called git-commit.sh
<span>+ <a href="https://bitbucket.org/live_power/aws-s3-download/src/467530b05cb7ee4f2cfdece4b387b062e656fa87/ci-scripts/git-commit.sh" target="_blank" rel="noopener noreferrer">./ci-scripts/git-commit.sh</a></span><span>[master 7dbc791] Update files for new version '0.1.0' [skip ci]</span><span> 1 file changed, 2 insertions(+), 1 deletion(-)</span><span>Warning: Permanently added the RSA host key for IP address '18.205.93.2' to the list of known hosts.</span><span>Permission denied (publickey).</span><span>fatal: Could not read from remote repository.</span><span>Please make sure you have the correct access rights</span><span>and the repository exists.</span>
<span>code for this:</span>
git add .
git commit -m "Update files for new version '${tag}' [skip ci]"
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa -F /dev/null" git push origin ${BITBUCKET_BRANCH}
I have followed the steps here: https://confluence.atlassian.com/bitbucket/push-back-to-your-repository-962352710.html in the
SSH Key pair managed by Bitbucket Pipelines
part