Pidp-1150-Missing breadcrumbs in Provider Reporting Portal page #458
Workflow file for this run
This file contains 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: Remove Helm deployment on PR merge - Gold | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [closed] | |
branches-ignore: | |
- 'test' | |
- 'master' | |
jobs: | |
remove-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install CLI tools from GitHub | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4" | |
- name: Authenticate and set context | |
uses: redhat-actions/[email protected] | |
with: | |
openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}} | |
openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}} | |
- name: Remove Helm deployment | |
run: | | |
helm uninstall pr-${{ github.event.number }} --namespace f088b1-dev | |
- name: Remove PR imagestream | |
run: | | |
oc tag -d pidp-frontend:pr-${{ github.event.number }} -n f088b1-tools | |
oc tag -d pidp-plr-intake:pr-${{ github.event.number }} -n f088b1-tools | |
oc tag -d pidp-webapi:pr-${{ github.event.number }} -n f088b1-tools | |
merge_job: | |
# this job will only run if the PR has been merged | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo PR #${{ github.event.number }} has been merged | |
close_job: | |
# this job will only run if the PR has been closed without being merged | |
if: github.event.pull_request.merged == false | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo PR #${{ github.event.number }} has been closed without being merged |