Skip to content

Commit

Permalink
Merge pull request #5 from pwei1018/main
Browse files Browse the repository at this point in the history
Added CI/CD.
  • Loading branch information
pwei1018 authored Apr 25, 2024
2 parents bb45fe0 + fa2ecef commit bc5c60f
Show file tree
Hide file tree
Showing 24 changed files with 8,045 additions and 8,778 deletions.
5 changes: 0 additions & 5 deletions .codecov

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/strr-api-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: STRR API CD

on:
push:
branches:
- main
paths:
- "api/**"
workflow_dispatch:
inputs:
target:
description: "Deploy To"
required: true
type: choice
options:
- dev
- test
- sandbox
- prod

jobs:
strr-api-cd:
uses: bcgov/bcregistry-sre/.github/workflows/cloud-run-service-cd.yaml@main
with:
target: ${{ inputs.target }}
app_name: "strr-api"
working_directory: "./api"
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
20 changes: 20 additions & 0 deletions .github/workflows/strr-api-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: STRR API CI

on:
pull_request:
paths:
- "api/**"
workflow_dispatch:

defaults:
run:
shell: bash
working-directory: ./api

jobs:
strr-api-ci:
uses: bcgov/bcregistry-sre/.github/workflows/backend-ci.yaml@main
with:
app_name: "strr-api"
working_directory: "./api"
codecov_flag: "strrapi"
114 changes: 0 additions & 114 deletions .github/workflows/strr-api-ci.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/strr-ui-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: STRR UI CD

on:
push:
branches:
- main
paths:
- "strr-web/**"
workflow_dispatch:
inputs:
target:
description: "Deploy To"
required: true
type: choice
options:
- dev
- test
- sandbox
- prod

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

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

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

jobs:
strr-ui-ci:
uses: bcgov/bcregistry-sre/.github/workflows/frontend-ci.yaml@main
with:
app_name: "strr-ui"
working_directory: "./strr-web"
codecov_flag: "strrui"
Loading

0 comments on commit bc5c60f

Please sign in to comment.