Tentavite de push ssh
This commit is contained in:
parent
582e5ee179
commit
758821027d
17
.drone.yml
17
.drone.yml
@ -1,10 +1,19 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: hello-world
|
name: Push Content
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: say-hello
|
- name: Push Content
|
||||||
image: alpine:3.8
|
image: alpine
|
||||||
commands:
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user