adding a secret for ssh username
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Louis Lacoste 2024-04-03 15:30:18 +02:00
parent f113d2409f
commit bb640bfd4d

View file

@ -26,9 +26,10 @@ pipeline:
- chmod 700 /root/.ssh - chmod 700 /root/.ssh
- echo "$SSH_KEY_BASE64" | base64 -d >/root/.ssh/id_ecdsa - echo "$SSH_KEY_BASE64" | base64 -d >/root/.ssh/id_ecdsa
- chmod 600 /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: secrets:
- ssh_key_base64 - ssh_key_base64
- ssh_user
notify-on-success: notify-on-success:
image: plugins/webhook image: plugins/webhook