PIDP-980 - Update Keycloak Email on First Update #376
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [closed] | |
branches-ignore: | |
- 'test' | |
- 'master' | |
jobs: | |
remove-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Authenticate and set context | |
uses: redhat-actions/oc-login@v1.1 | |
with: | |
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} | |
openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}} | |
- name: Remove Helm deployment | |
run: | | |
helm uninstall pr-${{ github.event.number }} --namespace d8a8f9-dev | |
- name: Remove PR imagestream | |
run: | | |
oc tag -d pidp-frontend:pr-${{ github.event.number }} -n d8a8f9-tools | |
oc tag -d pidp-plr-intake:pr-${{ github.event.number }} -n d8a8f9-tools | |
oc tag -d pidp-webapi:pr-${{ github.event.number }} -n d8a8f9-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 |