Files
runner-images/images/ubuntu/scripts/build/install-oc-cli.sh
T

15 lines
553 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
2020-07-07 07:36:28 -07:00
################################################################################
2023-11-22 21:49:23 +01:00
## File: install-oc-cli.sh
## Desc: Install the OC CLI
2020-07-07 07:36:28 -07:00
################################################################################
2023-12-29 12:36:27 +01:00
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
2020-07-07 07:36:28 -07:00
# Install the oc CLI
2023-12-29 12:36:27 +01:00
archive_path=$(download_with_retry "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz")
tar xzf "$archive_path" -C "/usr/local/bin" oc
2020-07-07 07:36:28 -07:00
2023-11-22 21:49:23 +01:00
invoke_tests "CLI.Tools" "OC CLI"