From a9c9a3ac1f99f61ea95c54ae835673b13eca7a37 Mon Sep 17 00:00:00 2001 From: komarov Date: Sat, 18 Apr 2020 19:09:15 +0300 Subject: [PATCH] test --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index f3aed0d..b9d7a82 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,6 +19,7 @@ steps: - eval $(ssh-agent) - mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub - ssh-add $HOME/.ssh/id_rsa + - dig -t a +short gitea.local | grep ^[0-9] | xargs -r -n1 ssh-keyscan -H -p 2222 >> ~/.ssh/known_hosts - ssh-keyscan -t rsa -p 2222 -H gitea.local >> $HOME/.ssh/known_hosts - git clone $GIT_REPOSITORY ./ - git checkout $DRONE_COMMIT