drone_hello/.drone.yml

19 lines
477 B
YAML
Raw Normal View History

2020-07-17 15:08:28 +00:00
kind: pipeline
2020-08-04 11:29:43 +00:00
name: Push Content
2020-07-17 15:08:28 +00:00
type: docker
steps:
2020-08-04 11:29:43 +00:00
- name: Push Content
2020-08-04 11:32:12 +00:00
image: kroniak/ssh-client
2020-07-17 15:08:28 +00:00
commands:
2020-08-04 11:30:13 +00:00
- echo Début du Push
2020-08-04 11:29:43 +00:00
- 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:
2020-08-04 11:33:35 +00:00
from_secret: sshcontent-key
2020-08-04 11:29:43 +00:00
2020-07-17 15:38:23 +00:00