Tentavite de push ssh

This commit is contained in:
Bertrand Benjamin 2020-08-04 11:29:43 +00:00
parent 582e5ee179
commit 758821027d
1 changed files with 13 additions and 4 deletions

View File

@ -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