mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-13 11:45:45 +03:00
17f3431b43
Sets two environment variables, LANDSCAPE_STREAM and LANDSCAPE_SHORTHASH, to be employed by landscape builds. Also reverts the janeway version used to v0.13.1 as the --dev flag is unnecessary.
39 lines
780 B
Bash
Executable File
39 lines
780 B
Bash
Executable File
#!/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
|
|
|
|
LANDSCAPE_STREAM="development"
|
|
export LANDSCAPE_STREAM
|
|
|
|
LANDSCAPE_SHORTHASH="${GITHUB_SHA:0:7}"
|
|
export LANDSCAPE_SHORTHASH
|
|
|
|
janeway release glob --no-pill \
|
|
--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
|
|
|