drone windows ssh git
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Dan Ballard 2021-05-06 14:46:28 -07:00
parent ae081e9a3b
commit 2dd797bf4d
1 changed files with 7 additions and 7 deletions

View File

@ -166,15 +166,15 @@ clone:
steps:
- name: clone
environment:
buildbot_key_b64:
from_secret: buildbot_key_b64
commands:
- # force by pass of ssh host key check, less secure
# - ssh-keyscan -H git.openprivacy.ca >> ~/.ssh/known_hosts
- echo $DRONE_UI_USERNAME
- echo $Env:DRONE_UI_USERNAME
- echo %userprofile%
- echo %username%
- whoami
- dir
- ssh-keyscan -H git.openprivacy.ca >> ..\known_hosts
- echo $buildbot_key_b64 > ..\id_rsa.b64
- certutil -decode .\id_rsa.b64 ..\id_rsa
- git config core.sshCommand "ssh -o UserKnownHostsFile=..\known_hosts -i ..\id_rsa"
- git clone gogs@git.openprivacy.ca:flutter/flutter_app.git .
- git checkout $DRONE_COMMIT