Skip to content

Commit

Permalink
Install oc without external action
Browse files Browse the repository at this point in the history
The redhat-actions/openshift-tools-installer is experiencing slowness
when installing oc. This steps can take up to 3 minutes. More info:
redhat-actions/openshift-tools-installer#105

Using a custom script reduces the installation of oc to less than 10s.

Signed-off-by: Matthias Goerens <[email protected]>
  • Loading branch information
github-actions[bot] authored and mgoerens committed Nov 19, 2024
1 parent 78e5987 commit c282ffd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c282ffd

Please sign in to comment.