feat(peach): add PEACH on-hold event parsing and improve upon the peach parser #567
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull Request Closed | |
| env: | |
| ACRONYM: pcns | |
| APP_NAME: nr-permitconnect-navigator-service | |
| NAMESPACE_PREFIX: d9d78e | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - "feature/**" | |
| - "release/**" | |
| types: | |
| - closed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| remove-pr-dev: | |
| name: Remove PR build from dev namespace | |
| if: "! github.event.pull_request.head.repo.fork" | |
| environment: | |
| name: pr | |
| url: https://${{ env.ACRONYM }}-dev-pr-${{ github.event.number }}.apps.silver.devops.gov.bc.ca | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 12 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Login to OpenShift Cluster | |
| uses: bcgov/action-oc-runner@d2fc921aaa9d70684c186dbb7754e6985d44d86f # v1.4.1 | |
| with: | |
| oc_server: ${{ secrets.OPENSHIFT_SERVER }} | |
| oc_token: ${{ secrets.OPENSHIFT_TOKEN }} | |
| oc_namespace: ${{ env.NAMESPACE_PREFIX }}-dev | |
| - name: Remove PR Deployment | |
| shell: bash | |
| run: | | |
| helm uninstall --namespace ${{ env.NAMESPACE_PREFIX }}-dev pr-${{ github.event.number }} --timeout 10m --wait | |
| oc delete --namespace ${{ env.NAMESPACE_PREFIX }}-dev cm,secret --selector app.kubernetes.io/instance=pr-${{ github.event.number }} | |
| - name: Remove Release Comment on PR | |
| uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3.0.2 | |
| with: | |
| header: release | |
| delete: true | |
| - name: Remove Github Deployment Environment | |
| uses: strumwolf/delete-deployment-environment@v3 | |
| with: | |
| environment: pr | |
| onlyRemoveDeployments: true | |
| token: ${{ secrets.GITHUB_TOKEN }} |