mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
fix openshift cli issue (#10153)
This commit is contained in:
committed by
GitHub
parent
5eda352fd4
commit
0176ca6d78
@@ -5,10 +5,20 @@
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/os.sh
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Install the oc CLI
|
||||
archive_path=$(download_with_retry "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz")
|
||||
if is_ubuntu20; then
|
||||
toolset_version=$(get_toolset_value '.ocCli.version')
|
||||
download_url="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/$toolset_version/openshift-client-linux-$toolset_version.tar.gz"
|
||||
else
|
||||
|
||||
# Install the oc CLI
|
||||
download_url="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz"
|
||||
fi
|
||||
|
||||
archive_path=$(download_with_retry "$download_url")
|
||||
|
||||
tar xzf "$archive_path" -C "/usr/local/bin" oc
|
||||
|
||||
invoke_tests "CLI.Tools" "OC CLI"
|
||||
|
||||
@@ -378,5 +378,9 @@
|
||||
"aliyunCli": {
|
||||
"version": "3.0.174",
|
||||
"sha256": "0c51028a7a32fc02c8de855f73e273556f957115eb5624565738f9b9f83a50ba"
|
||||
}
|
||||
},
|
||||
"ocCli": {
|
||||
"version": "4.15.19"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user