From 47510be6450f3f41d2b526cef16722f9636eaf38 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 7 Sep 2021 17:41:49 -0700 Subject: [PATCH] drone checkout from forked repo --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f84cb7b9..16d80bb3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,7 @@ steps: # force by pass of ssh host key check, less secure - ssh-keyscan -H git.openprivacy.ca >> ~/.ssh/known_hosts # 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 clone gogs@git.openprivacy.ca:$DRONE_REPO.git . - git checkout $DRONE_COMMIT - name: fetch @@ -187,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 $Env:DRONE_GIT_SSH_URL + - git remote add origin gogs@git.openprivacy.ca:$Env:DRONE_REPO.git - git pull origin trunk - git fetch --tags - git checkout $Env:DRONE_COMMIT