shrub/.github/actions/ota/entrypoint.sh

21 lines
377 B
Bash
Raw Normal View History

2022-12-12 11:25:08 +03:00
#!/usr/bin/env bash
echo "$2" | base64 -d > /service-account
echo "$3" | base64 -d > /id_ssh
echo "$4" | base64 -d > /id_ssh.pub
chmod 600 /service-account
chmod 600 /id_ssh
chmod 600 /id_ssh.pub
janeway \
--ci \
--verbose \
--credentials /service-account \
--ssh-key /id_ssh \
2022-12-12 11:50:48 +03:00
release ota \
2022-12-12 11:25:08 +03:00
arvo \
"$1" \
${5:+"--ref"} ${5:+"$5"} \
| bash