drone custom ssh git clone: force ssh host key insertion at run time from host...
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Dan Ballard 2021-05-03 16:52:40 -07:00
parent ac14ed9102
commit 0ed1ce2a48
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ steps:
commands:
- mkdir ~/.ssh
- echo $buildbot_key > ~/.ssh/id_rsa
- echo "|1|mqCLMcY21CQ9Mxzg2NJNwEg5ggU=|Kh5fkC0dDTEKYk9VhpWNyks53ag= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDd52T38o5Q7mSSf2WHnBCIwinDxBZnx30ZjzSRdj2juIkPULOyuW7NIKdTvpyf8JfTKQ9BaM8EUD5NyJ9dIbjU=" >> ~/.ssh/known_hosts
# force by pass of ssh host key check, less secure
- ssh-keyscan -H build.openprivacy.ca >> ~/.ssh/known_hosts
- git clone gogs@git.openprivacy.ca:flutter/flutter_app.git .
- git checkout $DRONE_COMMIT