Skip to content

Commit

Permalink
added cleaner oc install
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGarewal committed Jan 14, 2025
1 parent 96aae4c commit 0e37c8c
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/deployStatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0e37c8c

Please sign in to comment.