From c282ffd59243900c1c903690ebf3fbf76118f027 Mon Sep 17 00:00:00 2001 From: mgoerens <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:35:37 +0100 Subject: [PATCH] Install oc without external action The redhat-actions/openshift-tools-installer is experiencing slowness when installing oc. This steps can take up to 3 minutes. More info: https://github.com/redhat-actions/openshift-tools-installer/issues/105 Using a custom script reduces the installation of oc to less than 10s. Signed-off-by: Matthias Goerens --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11a79c3c..cd189bb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -216,9 +216,12 @@ jobs: - name: Install oc id: install-oc if: ${{ steps.verify_requires.outputs.cluster_needed == 'true' }} - uses: redhat-actions/openshift-tools-installer@v1 - with: - oc: latest + run: | + wget --progress=dot:mega https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz + tar -zxvf openshift-client-linux.tar.gz oc -C . + echo "$PWD/oc" >> $GITHUB_PATH + rm -f openshift-client-linux.tar.gz + oc version - name: Set cluster login params id: login-params