I'm trying to make a CI/CD process in which i push content to the "test" branch, it deploys the project to the test environment and then i can use the promote button in deployment steps to send to the production environment and then pull the content of test in master.
I already setted an ssh key in the repository but don't know what else i need if i'm working in the same repository cause when i try to git checkout master to do the pull (because the pipeline is executing in test) it tells me it doesn't have the branch locally, so i do git fetch and i get the error:
<span>Warning: Permanently added the RSA host key for IP address 'xx.xxx.xx.x' to the list of known hosts. </span><span>Permission denied (publickey).</span>
<span>What should i do to have this working?</span>