Skip to content

Commit 5c18bbd

Browse files
authored
Add installed oc bin to the path (#483)
Signed-off-by: Jose R. Gonzalez <[email protected]>
1 parent 6b595e0 commit 5c18bbd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ jobs:
8686
run: |
8787
# install oc
8888
curl -sLO https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz
89-
tar zxvf openshift-client-linux.tar.gz oc
89+
tar zxvf openshift-client-linux.tar.gz -C /usr/local/bin/
90+
which oc
91+
oc --version --client=true
9092
9193
- name: Build podman Image
9294
working-directory: ./chart-verifier
@@ -118,9 +120,9 @@ jobs:
118120
if [ $GITHUB_REPOSITORY == "redhat-certification/chart-verifier" ]; then
119121
# TODO: temporarily allow for skipping TLS verification as the new cluster uses local-only certificates
120122
# This if logic isn't removed to remind us to come back and swap this out when a valid cert is put in place.
121-
./oc login --insecure-skip-tls-verify --token=${{ secrets.CLUSTER_TOKEN }} --server=${API_SERVER}
123+
oc login --insecure-skip-tls-verify --token=${{ secrets.CLUSTER_TOKEN }} --server=${API_SERVER}
122124
else
123-
./oc login --insecure-skip-tls-verify --token=${{ secrets.CLUSTER_TOKEN }} --server=${API_SERVER}
125+
oc login --insecure-skip-tls-verify --token=${{ secrets.CLUSTER_TOKEN }} --server=${API_SERVER}
124126
fi
125127
ve1/bin/sa-for-chart-testing --create charts-${{ github.event.number }} --token token.txt --server ${API_SERVER}
126128
@@ -143,7 +145,7 @@ jobs:
143145
run: |
144146
# delete the namespace
145147
API_SERVER=$( echo -n ${{ secrets.API_SERVER }} | base64 -d)
146-
./oc login --token=${{ secrets.CLUSTER_TOKEN }} --server=${API_SERVER}
148+
oc login --token=${{ secrets.CLUSTER_TOKEN }} --server=${API_SERVER}
147149
ve1/bin/sa-for-chart-testing --delete charts-${{ github.event.number }}
148150
149151
- name: Set up Python scripts on main branch

0 commit comments

Comments
 (0)