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