From 758821027d9847706769e7e5cf4b5f8bb4514c59 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 4 Aug 2020 11:29:43 +0000 Subject: [PATCH] Tentavite de push ssh --- .drone.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c3359b4..05bed09 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,19 @@ kind: pipeline -name: hello-world +name: Push Content type: docker steps: - - name: say-hello - image: alpine:3.8 + - name: Push Content + image: alpine commands: - - echo Chipololo + - echo Début du Push + - eval `ssh-agent -s` + - echo "$SSH_KEY" | ssh-add - + - mkdir -p ~/.ssh + - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + - rsync -rv --delete -e "ssh -p 22" ./ sshcontent@91.121.90.228:~/raw.opytex.org/www/ --checksum + environment: + SSH_KEY: + from_secret: drone_ssh_key + \ No newline at end of file