2020-12-19 16:52:14 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
cd "$GITHUB_WORKSPACE" || exit
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-05-27 15:51:02 +03:00
|
|
|
janeway release glob-all --dev --no-pill \
|
2020-12-19 16:52:14 +03:00
|
|
|
--credentials service-account \
|
|
|
|
--ssh-key id_ssh \
|
|
|
|
--do-it-live \
|
|
|
|
| bash
|
|
|
|
|
|
|
|
SHORTHASH=$(git rev-parse --short HEAD)
|
|
|
|
|
|
|
|
janeway release prepare-ota arvo-glob-"$SHORTHASH" "$1" \
|
|
|
|
--credentials service-account \
|
|
|
|
--ssh-key id_ssh \
|
|
|
|
--do-it-live \
|
|
|
|
| bash
|
|
|
|
|
|
|
|
janeway release perform-ota "$1" \
|
|
|
|
--credentials service-account \
|
|
|
|
--ssh-key id_ssh \
|
|
|
|
--do-it-live \
|
|
|
|
| bash
|
|
|
|
|