I have a pipeline in butbucket with a runner with docker install on a VPS. When I run the pipeline it fails in the line “git pull origin master”.
I set SSH keys in SSH keys menu on bitbucket I’ve added the file authorized_keys on VPS and it gives this error.
Host bitbucket.org
UseKeychain yes
IdentityFile ~/.ssh/jga
Error as follows:
Load key "/home/debian/apps/test/1401a1c6-b767-5d08-8df5-6edc1e68ccdb/ssh/id_rsa": invalid format
[email protected]: Permission denied (publickey).
It seems as if I have to configure something inside the docker (runner). I don’t know!
Any ideas?
the runner:
docker container run -it -v /home/debian/apps/test:/home/debian/apps/test -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ACCOUNT_UUID={ccc2-3cf0-4d66-a66e-14b9b7a6} -e REPOSITORY_UUID={62e5f-c708-4bce-a251-51177bf} -e RUNNER_UUID={1401-b767-5d08-8df5-6edc1e68cdb} -e RUNTIME_PREREQUISITES_ENABLED=true -e OAUTH_CLIENT_ID=2PulGVaC61dTCHkHZ -e OAUTH_CLIENT_SECRET=0CCKQK8dvaWwL7_n2PoOR1c4zqo -e WORKING_DIRECTORY=/home/debian/apps/test --name runner-1401a1c6-b767-5d08-8df5-6edc1e68ccdb docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1