Skip to content

Commit

Permalink
Add redeploy option and release branch to CD flow. (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 authored Dec 18, 2024
2 parents b9b7071 + 0dd42b0 commit dbe18f7
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 16 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/account-mailer-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- feature*
- hotfix*
- release*
paths:
- "queue_services/account-mailer/**"
- "auth-api/src/auth_api/models/**"
Expand All @@ -19,17 +20,25 @@ on:
required: true
type: choice
options:
- dev
- test
- sandbox
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"
jobs:
account-mailer-cd:
uses: bcgov/bcregistry-sre/.github/workflows/backend-cd.yaml@main
with:
target: ${{ inputs.target }}
app_name: "account-mailer"
working_directory: "./queue_services/account-mailer"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
17 changes: 13 additions & 4 deletions .github/workflows/auth-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- feature*
- hotfix*
- release*
paths:
- "auth-api/**"
workflow_dispatch:
Expand All @@ -15,10 +16,17 @@ on:
required: true
type: choice
options:
- dev
- test
- sandbox
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
auth-api-cd:
Expand All @@ -27,6 +35,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "auth-api"
working_directory: "./auth-api"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
17 changes: 13 additions & 4 deletions .github/workflows/auth-queue-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- feature*
- hotfix*
- release*
paths:
- "queue_services/auth-queue/**"
- "auth-api/src/auth_api/models/**"
Expand All @@ -19,10 +20,17 @@ on:
required: true
type: choice
options:
- dev
- test
- sandbox
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
auth-queue-cd:
Expand All @@ -31,6 +39,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "auth-queue"
working_directory: "./queue_services/auth-queue"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
17 changes: 13 additions & 4 deletions .github/workflows/auth-web-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- feature*
- hotfix*
- release*
paths:
- "auth-web/**"
workflow_dispatch:
Expand All @@ -15,10 +16,17 @@ on:
required: true
type: choice
options:
- dev
- test
- sandbox
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
account-ui-cd:
Expand All @@ -27,6 +35,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "account-ui"
working_directory: "./auth-web"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

0 comments on commit dbe18f7

Please sign in to comment.