drone custom ssh git clone: b64 key
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Dan Ballard 2021-05-03 17:05:41 -07:00
parent 0ed1ce2a48
commit 63d530203f
1 changed files with 4 additions and 3 deletions

View File

@ -11,11 +11,12 @@ steps:
- name: clone
image: cirrusci/flutter:dev
environment:
buildbot_key:
from_secret: buildbot_key
buildfiles_key_b64:
from_secret: buildfiles_key_b64
commands:
- mkdir ~/.ssh
- echo $buildbot_key > ~/.ssh/id_rsa
- echo buildfiles_key_b64 > ~/.ssh/id_rsa.b64
- base64 --decode ~/.ssh/id_rsa.b64 > ~/.ssh/id_rsa
# 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 .