From f65536160a1e15d9becfef9652e4f79dbb30ab4c Mon Sep 17 00:00:00 2001 From: Pascal LAFOURCADE Date: Tue, 22 Nov 2022 08:39:17 +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 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 276bdbeb..4f11f8ce 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,13 +7,17 @@ trigger: steps: - name: start - image: monachus/hugo + image: node commands: - # - npm install + - npm install + +- name: deploy + image: drone-scp + settings: + port: 22 + host: sancy.iut.uca.fr + username: lafourcade + target: public_html/Scripted + source: WEB/* + key-path: "${HOME}/.ssh/id_rsa" - 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'