woodpecker: usar ssh-agent para llaves

This commit is contained in:
Cat /dev/Nulo 2021-09-18 10:41:21 -03:00
parent c26d69777e
commit 2374719d62

View file

@ -2,8 +2,11 @@ pipeline:
deploy:
image: registry.nulo.in/sutty/haini.sh:latest
commands:
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
- mkdir ~/.ssh/
- echo $${SSH_KEY} > ~/.ssh/id_ed25519
- chmod 700 ~/.ssh
- make bundle hain="sh -c"
- make yarn hain="sh -c"
- make ota-js hain="sh -c"