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'