Skip to content

Commit

Permalink
Update CD flows.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 committed Dec 19, 2024
1 parent 4c1da0d commit c9c05cc
Show file tree
Hide file tree
Showing 9 changed files with 167 additions and 26 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/strr-api-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "strr-api/**"
workflow_dispatch:
Expand All @@ -13,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:
strr-api-cd:
Expand All @@ -25,6 +35,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "strr-api"
working_directory: "./strr-api"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
19 changes: 15 additions & 4 deletions .github/workflows/strr-auto-approval-job-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "jobs/auto-approval/**"
- "src/strr_api/models/**"
Expand All @@ -18,10 +21,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:
strr-auto-approval-cd:
Expand All @@ -30,6 +40,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "strr-auto-approval"
working_directory: "./jobs/auto-approval"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
42 changes: 42 additions & 0 deletions .github/workflows/strr-examiner-ui-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: STRR Examiner UI CD

on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "strr-examiner-web/**"
workflow_dispatch:
inputs:
target:
description: "Deploy To"
required: true
type: choice
options:
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
examiner-ui-cd:
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main
with:
target: ${{ inputs.target }}
app_name: "strr-examiner-ui"
working_directory: "./strr-examiner-web"
node_version: 20
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
21 changes: 21 additions & 0 deletions .github/workflows/strr-examiner-ui-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: STRR Examiner UI CI

on:
pull_request:
paths:
- "strr-examiner-web/**"
workflow_dispatch:

defaults:
run:
shell: bash
working-directory: ./strr-examiner-web

jobs:
examiner-ui-ci:
uses: bcgov/bcregistry-sre/.github/workflows/frontend-ci.yaml@main
with:
app_name: "strr-examiner-ui"
working_directory: "./strr-examiner-web"
codecov_flag: "strrexaminerui"
node_version: 20
18 changes: 15 additions & 3 deletions .github/workflows/strr-host-pm-ui-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "strr-host-pm-web/**"
workflow_dispatch:
Expand All @@ -13,9 +16,17 @@ on:
required: true
type: choice
options:
- dev
- test
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
strr-host-pm-ui-cd:
Expand All @@ -25,6 +36,7 @@ jobs:
app_name: "strr-hosts"
working_directory: "./strr-host-pm-web"
node_version: 20
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
19 changes: 15 additions & 4 deletions .github/workflows/strr-pay-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "queue_services/strr-pay/**"
workflow_dispatch:
Expand All @@ -13,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:
strr-pay-cd:
Expand All @@ -25,6 +35,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "strr-pay"
working_directory: "queue_services/strr-pay"
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
18 changes: 15 additions & 3 deletions .github/workflows/strr-platform-ui-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "strr-platform-web/**"
workflow_dispatch:
Expand All @@ -13,9 +16,17 @@ on:
required: true
type: choice
options:
- dev
- test
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
platform-ui-cd:
Expand All @@ -25,6 +36,7 @@ jobs:
app_name: "strr-platform-ui"
working_directory: "./strr-platform-web"
node_version: 20
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
18 changes: 15 additions & 3 deletions .github/workflows/strr-strata-ui-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "strr-strata-web/**"
workflow_dispatch:
Expand All @@ -13,9 +16,17 @@ on:
required: true
type: choice
options:
- dev
- test
- prod
- "dev"
- "test"
- "sandbox"
- "prod"
redeploy:
description: "Redeploy Application"
required: true
type: choice
options:
- "false"
- "true"

jobs:
strata-ui-cd:
Expand All @@ -25,6 +36,7 @@ jobs:
app_name: "strr-strata-hotel-ui"
working_directory: "./strr-strata-web"
node_version: 20
redeploy: ${{ inputs.redeploy }}
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
19 changes: 14 additions & 5 deletions .github/workflows/strr-ui-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@ on:
branches:
- main
- feature*
- hotfix*
- release*
paths:
- "strr-web/**"
- "strr-examiner-web/**"
workflow_dispatch:
inputs:
target:
description: "Deploy To"
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:
strr-ui-cd:
Expand All @@ -27,6 +35,7 @@ jobs:
target: ${{ inputs.target }}
app_name: "strr-ui"
working_directory: "./strr-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 c9c05cc

Please sign in to comment.