mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Fix Openshift-client installation (#2184)
* fix oc installation * resolve issue
This commit is contained in:
committed by
GitHub
parent
a94b661b02
commit
77db8c40a0
@@ -4,11 +4,13 @@
|
|||||||
## Desc: Installs the OC CLI
|
## Desc: Installs the OC CLI
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
source $HELPER_SCRIPTS/install.sh
|
||||||
|
|
||||||
# Install the oc CLI
|
# Install the oc CLI
|
||||||
curl "https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz" > oc.tar.gz
|
DOWNLOAD_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz"
|
||||||
tar xvzf oc.tar.gz
|
PACKAGE_TAR_NAME="oc.tar.gz"
|
||||||
rm oc.tar.gz
|
download_with_retries $DOWNLOAD_URL "/tmp" $PACKAGE_TAR_NAME
|
||||||
mv oc /usr/local/bin
|
tar xvzf "/tmp/$PACKAGE_TAR_NAME" -C "/usr/local/bin"
|
||||||
|
|
||||||
# Validate the installation
|
# Validate the installation
|
||||||
echo "Validate the installation"
|
echo "Validate the installation"
|
||||||
|
|||||||
Reference in New Issue
Block a user