From a78931371239c65ca02422631d1a62cd36eb2cdd Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 6 Jul 2021 15:04:36 -0700 Subject: [PATCH] this should allow the ssh clone to work on forks --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 38c902ce..388c2531 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 @@ -193,7 +194,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