Skip to content

Commit

Permalink
add step to install oc cli
Browse files Browse the repository at this point in the history
ubuntu-latest image has changed from 22.04 to 24.04, which no longer includes oc
  • Loading branch information
adimar-aot committed Oct 15, 2024
1 parent 8c958e2 commit 5bb58da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ jobs:
PUBLIC_URL=${{ secrets.PUBLIC_URL }}
REACT_APP_GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}
tags: ${{ secrets.DOCKER_REGISTRY }}/dbe7-images/${{ inputs.DOCKER_IMAGE_NAME }}:${{ inputs.DOCKER_IMAGE_TAG }}
- name: Install OpenShift CLI tools
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.14"
- name: Authenticate and set context for tools namespace
uses: redhat-actions/oc-login@v1.1.2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/db-migrate-workflow-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
file: ${{ env.DOCKER_FILE }}
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/dbe7-images/${{ env.DOCKER_IMAGE_NAME }}-stage:${{ env.DOCKER_IMAGE_TAG }}
- name: Install OpenShift CLI tools
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.14"
- name: Authenticate and set context
uses: redhat-actions/oc-login@v1.2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/db-migrate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
file: ${{ env.DOCKER_FILE }}
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/dbe7-images/${{ env.DOCKER_IMAGE_NAME }}-${{ inputs.environment }}:${{ env.DOCKER_IMAGE_TAG }}
- name: Install OpenShift CLI tools
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.14"
- name: Authenticate and set context
uses: redhat-actions/oc-login@v1.2
with:
Expand Down

0 comments on commit 5bb58da

Please sign in to comment.