|
|
@ -7,13 +7,17 @@ trigger:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: start
|
|
|
|
- name: start
|
|
|
|
image: monachus/hugo
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
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'
|
|
|
|
|
|
|
|