From 79f5fda3230d3aeaf239000ac623fd3c5048c688 Mon Sep 17 00:00:00 2001 From: Pascal LAFOURCADE Date: Tue, 22 Nov 2022 08:30:54 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'