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

This commit is contained in:
Dan Ballard 2021-05-06 14:51:14 -07:00
parent a7794e0ae0
commit f4331d0a34
1 changed files with 4 additions and 2 deletions

View File

@ -172,11 +172,13 @@ steps:
commands:
- # force by pass of ssh host key check, less secure
- ssh-keyscan -H git.openprivacy.ca >> ..\known_hosts
- echo $buildbot_key_b64 > ..\id_rsa.b64
- echo $Env:buildbot_key_b64 > ..\id_rsa.b64
- dir ..
- certutil -decode ..\id_rsa.b64 ..\id_rsa
- git init
- git config core.sshCommand 'ssh -o UserKnownHostsFile=..\known_hosts -i ..\id_rsa'
- git clone gogs@git.openprivacy.ca:flutter/flutter_app.git .
- git remote add origin gogs@git.openprivacy.ca:flutter/flutter_app.git
- git pull orign
- git checkout $DRONE_COMMIT
- name: fetch