diff --git a/.github/workflows/deployStatic.yml b/.github/workflows/deployStatic.yml index 08a70c4a..e915cfda 100644 --- a/.github/workflows/deployStatic.yml +++ b/.github/workflows/deployStatic.yml @@ -19,13 +19,10 @@ jobs: name: Check Env variables runs-on: ubuntu-latest steps: - # Install OpenShift CLI - - name: Install OpenShift CLI - run: | - curl -sLo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz - tar xzvf /tmp/oc.tar.gz -C /tmp/ - sudo mv /tmp/oc /usr/local/bin/ - rm -rf /tmp/oc.tar.gz + - name: Install CLI tools from OpenShift Mirror + uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: 4.14.37 - name: Print Env Vars run: | @@ -52,13 +49,17 @@ jobs: with: node-version: 10.16 - # Install OpenShift CLI - - name: Install OpenShift CLI - run: | - curl -sLo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz - tar xzvf /tmp/oc.tar.gz -C /tmp/ - sudo mv /tmp/oc /usr/local/bin/ - rm -rf /tmp/oc.tar.gz + # # Install OpenShift CLI + # - name: Install OpenShift CLI + # run: | + # curl -sLo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz + # tar xzvf /tmp/oc.tar.gz -C /tmp/ + # sudo mv /tmp/oc /usr/local/bin/ + # rm -rf /tmp/oc.tar.gz + - name: Install CLI tools from OpenShift Mirror + uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: 4.14.37 # Log in to OpenShift - name: Log in to OpenShift @@ -89,13 +90,13 @@ jobs: with: node-version: 10.16 - # Install OpenShift CLI - - name: Install OpenShift CLI - run: | - curl -sLo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz - tar xzvf /tmp/oc.tar.gz -C /tmp/ - sudo mv /tmp/oc /usr/local/bin/ - rm -rf /tmp/oc.tar.gz + # # Install OpenShift CLI + # - name: Install OpenShift CLI + # run: | + # curl -sLo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz + # tar xzvf /tmp/oc.tar.gz -C /tmp/ + # sudo mv /tmp/oc /usr/local/bin/ + # rm -rf /tmp/oc.tar.gz # Log in to OpenShift - name: Log in to OpenShift