generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 1.08 KB
/
pr-close.yml
File metadata and controls
33 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: PR Closed
on:
pull_request:
branches: [main]
types: [closed]
concurrency:
# PR open and close use the same group, allowing only one at a time
group: pr-${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
cleanup:
name: Cleanup OpenShift and/or Promote Images
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.pr-close.yml@0b8121a528aaa05ef8def2f79be9081691dfe98a # v0.9.0
secrets:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
cleanup: helm
packages: backend-go backend-java backend-py migrations-go migrations-py
cleanup_db: # TODO move it off to another action later.
name: Remove DB User from Crunchy
runs-on: ubuntu-24.04
steps:
- uses: bcgov/action-crunchy@ac46670c974c2238fffb635eee7bbd27735c25bc # v1.2.1
name: Remove PR Specific User
with:
oc_namespace: ${{ vars.oc_namespace }}
oc_token: ${{ secrets.oc_token }}
oc_server: ${{ vars.oc_server }}
values_file: charts/crunchy/values.yml