Skip to content

Commit

Permalink
ci: OC delete specified resources before deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalmemane committed Oct 24, 2024
1 parent e4f3723 commit 432e412
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/development-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:

- name: Deploy application
run: |
if oc get svc -l app=area-calculator --ignore-not-found; then
oc delete svc,deployment,route,imagestream --selector app=area-calculator;
echo "deleted all resources with label app=area-calculator";
fi
oc new-app quay.io/rh-ee-kmemane/area-calculator --name=area-calculator
oc expose svc area-calculator
oc get routes

0 comments on commit 432e412

Please sign in to comment.