Correct upload command

This commit is contained in:
Stefan H. 2023-02-06 13:26:14 +01:00
parent 6a168538cd
commit 2b07291efc

View file

@ -30,7 +30,8 @@ steps:
- echo "$SSH_KEY" | ssh-add - - echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config - echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config
- rsync -rv -e "ssh -p 22222" /drone/src/build/ hadr@server4.unhb.de:/htdocs/ --checksum # - rsync -rv -e "ssh -p 22222" /drone/src/build/ hadr@server4.unhb.de:/htdocs/ --checksum
- scp -P 22222 -r /drone/src/build/ hadr@server4.un-hack-bar.de:/htdocs
environment: environment:
SSH_KEY: SSH_KEY:
from_secret: drone_ssh_key from_secret: drone_ssh_key