adding a secret for ssh username
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f113d2409f
commit
bb640bfd4d
1 changed files with 2 additions and 1 deletions
|
|
@ -26,9 +26,10 @@ pipeline:
|
|||
- chmod 700 /root/.ssh
|
||||
- echo "$SSH_KEY_BASE64" | base64 -d >/root/.ssh/id_ecdsa
|
||||
- chmod 600 /root/.ssh/id_ecdsa
|
||||
- rsync -az -e 'ssh -p 479 -i /root/.ssh/id_ecdsa -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' public/ root@polarolouis.fr:/opt/services/blog/webpages
|
||||
- rsync -az -e 'ssh -p 479 -i /root/.ssh/id_ecdsa -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' public/ $SSH_USER@polarolouis.fr:/opt/services/blog/webpages
|
||||
secrets:
|
||||
- ssh_key_base64
|
||||
- ssh_user
|
||||
|
||||
notify-on-success:
|
||||
image: plugins/webhook
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue