diff --git a/.drone.yml b/.drone.yml index e11c11b..a569fc0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +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 - - resolveip -s gitea.local + - (ping -q -c 1 -t 1 gitea.local | grep PING | sed -e "s/).*//" | sed -e "s/.*(//") >> $HOME/.ssh/known_hosts - ssh-keyscan -t rsa -p 2222 -H gitea.local >> $HOME/.ssh/known_hosts - git clone $GIT_REPOSITORY ./ - git checkout $DRONE_COMMIT