diff --git a/.drone.yml b/.drone.yml index 4d06d911..276bdbeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,4 +9,11 @@ steps: - name: start image: monachus/hugo commands: - - npm install \ No newline at end of file + # - npm install + + before_script: + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - ssh-add <(echo "$ssh_private_key") + - mkdir -p ~/.ssh + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'