Skip to content

Commit dbe18f7

Browse files
authored
Add redeploy option and release branch to CD flow. (#3184)
2 parents b9b7071 + 0dd42b0 commit dbe18f7

File tree

4 files changed

+52
-16
lines changed

4 files changed

+52
-16
lines changed

.github/workflows/account-mailer-cd.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- feature*
88
- hotfix*
9+
- release*
910
paths:
1011
- "queue_services/account-mailer/**"
1112
- "auth-api/src/auth_api/models/**"
@@ -19,17 +20,25 @@ on:
1920
required: true
2021
type: choice
2122
options:
22-
- dev
23-
- test
24-
- sandbox
25-
- prod
23+
- "dev"
24+
- "test"
25+
- "sandbox"
26+
- "prod"
27+
redeploy:
28+
description: "Redeploy Application"
29+
required: true
30+
type: choice
31+
options:
32+
- "false"
33+
- "true"
2634
jobs:
2735
account-mailer-cd:
2836
uses: bcgov/bcregistry-sre/.github/workflows/backend-cd.yaml@main
2937
with:
3038
target: ${{ inputs.target }}
3139
app_name: "account-mailer"
3240
working_directory: "./queue_services/account-mailer"
41+
redeploy: ${{ inputs.redeploy }}
3342
secrets:
3443
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
3544
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

.github/workflows/auth-api-cd.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- feature*
88
- hotfix*
9+
- release*
910
paths:
1011
- "auth-api/**"
1112
workflow_dispatch:
@@ -15,10 +16,17 @@ on:
1516
required: true
1617
type: choice
1718
options:
18-
- dev
19-
- test
20-
- sandbox
21-
- prod
19+
- "dev"
20+
- "test"
21+
- "sandbox"
22+
- "prod"
23+
redeploy:
24+
description: "Redeploy Application"
25+
required: true
26+
type: choice
27+
options:
28+
- "false"
29+
- "true"
2230

2331
jobs:
2432
auth-api-cd:
@@ -27,6 +35,7 @@ jobs:
2735
target: ${{ inputs.target }}
2836
app_name: "auth-api"
2937
working_directory: "./auth-api"
38+
redeploy: ${{ inputs.redeploy }}
3039
secrets:
3140
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
3241
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

.github/workflows/auth-queue-cd.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- feature*
88
- hotfix*
9+
- release*
910
paths:
1011
- "queue_services/auth-queue/**"
1112
- "auth-api/src/auth_api/models/**"
@@ -19,10 +20,17 @@ on:
1920
required: true
2021
type: choice
2122
options:
22-
- dev
23-
- test
24-
- sandbox
25-
- prod
23+
- "dev"
24+
- "test"
25+
- "sandbox"
26+
- "prod"
27+
redeploy:
28+
description: "Redeploy Application"
29+
required: true
30+
type: choice
31+
options:
32+
- "false"
33+
- "true"
2634

2735
jobs:
2836
auth-queue-cd:
@@ -31,6 +39,7 @@ jobs:
3139
target: ${{ inputs.target }}
3240
app_name: "auth-queue"
3341
working_directory: "./queue_services/auth-queue"
42+
redeploy: ${{ inputs.redeploy }}
3443
secrets:
3544
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
3645
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

.github/workflows/auth-web-cd.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- feature*
88
- hotfix*
9+
- release*
910
paths:
1011
- "auth-web/**"
1112
workflow_dispatch:
@@ -15,10 +16,17 @@ on:
1516
required: true
1617
type: choice
1718
options:
18-
- dev
19-
- test
20-
- sandbox
21-
- prod
19+
- "dev"
20+
- "test"
21+
- "sandbox"
22+
- "prod"
23+
redeploy:
24+
description: "Redeploy Application"
25+
required: true
26+
type: choice
27+
options:
28+
- "false"
29+
- "true"
2230

2331
jobs:
2432
account-ui-cd:
@@ -27,6 +35,7 @@ jobs:
2735
target: ${{ inputs.target }}
2836
app_name: "account-ui"
2937
working_directory: "./auth-web"
38+
redeploy: ${{ inputs.redeploy }}
3039
secrets:
3140
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
3241
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

0 commit comments

Comments
 (0)