mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
15 lines
572 B
Bash
15 lines
572 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: oc.sh
|
|
## Desc: Installs the OC CLI
|
|
################################################################################
|
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
# Install the oc CLI
|
|
DOWNLOAD_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz"
|
|
PACKAGE_TAR_NAME="oc.tar.gz"
|
|
download_with_retries $DOWNLOAD_URL "/tmp" $PACKAGE_TAR_NAME
|
|
tar xzf "/tmp/$PACKAGE_TAR_NAME" -C "/usr/local/bin" oc
|
|
|
|
invoke_tests "CLI.Tools" "OC CLI" |