-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathrhoai-disconnected-helper.sh
executable file
·50 lines (42 loc) · 1.26 KB
/
rhoai-disconnected-helper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
source rhoai-dih.sh
function main(){
set_defaults
parse_args "$@"
releases=$(yq e '.releases[]' releases.yaml)
for release in $releases; do
branch_main=""
if [ -z "$rhods_version" ]; then
#rhods_version=$(get_latest_rhods_version)
rhods_version=$release
file_name="$rhods_version.md"
echo "Use latest RHODS version $rhods_version"
update_must_gather
echo $must_gather_image
fi
if is_rhods_version_greater_or_equal_to rhods-2.4; then
echo "Cloning repositories"
clone_all_repos
else
fetch_repository
pushd "$repository_folder" || echo "Error: Directory $repository_folder does not exist"
change_rhods_version
popd || exit 1
fetch_notebooks_repository
fi
image_set_configuration
#test_current_branch_name "$rhods_version"
cleanup
rhods_version=''
# For rhoai-nightly
# branch_main="rhoai-main"
# file_name="$branch_main.md"
# echo "Use latest RHODS version $branch_main"
# echo "Cloning repositories for main/master"
# clone_all_repos
# image_set_configuration
# # test_current_branch_name "$branch_main"
# cleanup
done
}
main "$@"