drone_hello/.drone.yml

19 lines
466 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
image: alpine
2020-07-17 15:08:28 +00:00
commands:
2020-08-04 11:29:43 +00:00
- 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
2020-07-17 15:38:23 +00:00