Hey, all. I’m trying to get my build converted to Circle 2.0, and I’m slightly stumped by a seemingly small problem. I use the last step of my deploy process to create and push a new tag for each build - and pushing the tag back to github is failing with the following errors:
:tagInternalVersionHost key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
From what I can tell, this seems to indicate that the “git push --tags” command is failing because the job can’t connect to github correctly. And sure enough, when I ssh into my build and manually run “git push --tags”, I get the following:
Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
From what I can tell, this likely indicates that github isn’t added to known_hosts/ssh config correctly. But the strange part is that this is all working just fine for the same project on Circle 1.0 - so I know that I have my deploy key created and set up correctly with both Circle and Github.
Here’s my config for the relevant job. I added the add_ssh_keys step, and I see this take effect - but it doesn’t seem sufficient to fix the problem. I’m sure this is something incredibly stupid on my part, but I can’t seem to find documentation of the right fix here.
deploy: docker: - image: circleci/android:api-27-alpha steps: # Attach the previously used workspace. - *attach_workspace - restore_cache: keys: - *android_cache_key - *ruby_cache_key - add_ssh_keys - run: name: Install Fastlane command: gem install fastlane - save_cache: paths: - "/opt/circleci/.rvm/gems" key: *ruby_cache_key - deploy: command: fastlane deploy_tot
Any advice would be very much appreciated!