Skip to content

Commit

Permalink
release build script: check that workers have access to the github repo
Browse files Browse the repository at this point in the history
  • Loading branch information
agalasso committed Jan 11, 2025
1 parent 3e585fa commit ad1797b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build/make-release
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,25 @@ load_config () {
}

check_hosts_reachable () (
# make sure hosts are reachable
# make sure hosts are reachable and that the build hosts have github access

for h in $WWW_HOST $WIN_HOST $MAC64_HOST $MAC64S_HOST; do
for h in $WWW_HOST; do
printf "checking $h ..."
ssh -q -oBatchMode=yes $h exit || {
ssh -q -oBatchMode=yes "$h" exit || {
echo "Error: host $h is not ssh-accessible" >&2
exit 1
}
printf " ok\n"
done
for prefix in WIN MAC64 MAC64S; do
eval 'h=$'${prefix}_HOST 'dir=$'${prefix}_DIR
printf "checking $h ..."
ssh -q -oBatchMode=yes "$h" "cd '$dir' && git fetch -q origin" || {
echo "Error: host $h is not ssh-accessible or has no git access" >&2
exit 1
}
printf " ok\n"
done
)

setup_worktree () {
Expand Down

0 comments on commit ad1797b

Please sign in to comment.