Use base64 to avoid issues with ssh key
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
5229fe9650
commit
961442207c
|
@ -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…
Reference in a new issue