Use base64 to avoid issues with ssh key
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
Kaan Barmore-Genç 4 months ago
parent 5229fe9650
commit 961442207c
Signed by: kaan
GPG Key ID: B2E280771CD62FCF

@ -13,6 +13,6 @@ pipeline:
image: seriousbug/rsync
secrets: [SSH_KEY, SSH_USER]
commands:
- echo $SSH_KEY > ssh_key
- echo $SSH_KEY | base64 -d > ssh_key
- chmod 600 ssh_key
- rsync -avz -e 'ssh -o StrictHostKeyChecking=no -i ssh_key' public/ $SSH_USER@bgenc.net:/array/www/

Loading…
Cancel
Save