Update CI-CD file for openshift.yaml

This commit is contained in:
Mohit Kumar 2024-09-27 12:09:34 -04:00 committed by GitHub
parent 07116cb017
commit c9c976213b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,10 +87,13 @@ jobs:
oc rollout status dc/${{ env.APP_NAME }}
- name: Get OpenShift Route name
run: echo ::set-output name=route_name::$(oc get route ${{ env.APP_NAME }} -o jsonpath='{.spec.host}')
run: |
oc get route petclinic-app -o jsonpath='{.spec.host}' > route_name.txt
echo "route_name=$(cat route_name.txt)" >> $GITHUB_ENV
id: openshift_route_name
- name: Add a comment to PR
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}