Merge pull request 'this should allow the ssh clone to work on forks' (#97) from cloneFork into trunk
continuous-integration/drone/push Build was killed Details

Reviewed-on: #97
This commit is contained in:
Sarah Jamie Lewis 2021-07-06 15:18:35 -07:00
commit df43870e61
1 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ steps:
- chmod 400 ~/.ssh/id_rsa
# force by pass of ssh host key check, less secure
- ssh-keyscan -H git.openprivacy.ca >> ~/.ssh/known_hosts
- git clone gogs@git.openprivacy.ca:cwtch.im/cwtch-ui.git .
# use Drone ssh var instead of hardcode to allow forks to build (gogs@git.openprivacy.ca:cwtch.im/cwtch-ui.git)
- git clone $DRONE_GIT_SSH_URL .
- git checkout $DRONE_COMMIT
- name: fetch
@ -186,7 +187,7 @@ steps:
- git init
# -o UserKnownHostsFile=../known_hosts
- git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -i ../id_rsa'
- git remote add origin gogs@git.openprivacy.ca:cwtch.im/cwtch-ui.git
- git remote add origin $DRONE_GIT_SSH_URL
- git pull origin trunk
- git fetch --tags
- git checkout $DRONE_COMMIT