Skip to content

Commit

Permalink
feat(FSADT1-639): bc registry address data (#399)
Browse files Browse the repository at this point in the history
* feat(FSADT1-639): adding bcregistry details backend

* feature(FSADT1-639): adding loading on frontend

* feature(FSADT1-639): adding bc registry params for deployment

* feat: updating form to load addresses

* chore(deps): update registry.access.redhat.com/ubi8/ubi docker tag to v8.7-1090

* fix(deps): update dependency org.springframework.boot:spring-boot-starter-parent to v3.0.4

* chore(deps): update dependency maven-wrapper to v3.2.0

* chore(deps): update maven all non-major dependencies

* fix(deps): update vitest monorepo to ^0.29.0

* chore(deps): update dependency org.apache.maven.plugins:maven-failsafe-plugin to v3

* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3

* chore(deps): update linters

* chore(deps): update postgres docker tag to v15

* Frontend improvements (#400)

* no message

* feat(fe):
- First draft of the FE without JSON schema

* feat(fe):
- Draft of the FE without JSON schema #2

* feat(fe/be):
- Draft of the FE without JSON schema #3
- Changed data model

* feat(fe/be):
- Draft of the FE without JSON schema #4

* feat(fe/be):
- Draft of the FE without JSON schema #5

* feat(fe/be):
- Draft of the FE without JSON schema #5
- Completed Autocomplete
- Renamed some files

* feat(fe/be):
- Draft of the FE without JSON schema #6

* fix(fe/be):
- Fixed some issues in the SQL scripts and the unit test

* feat(fe/be):
- Draft of the FE without JSON schema #7
- Added missing validation components

* Dropped example

* fix(fe):
- Fixed some issues in the unit test

* feat(fe):
- Draft of the FE without JSON schema #8
- Improved code and made code reviews

* fix: fixing tests

* feat(fe):
- Cleaned up code
- Improved code and made code reviews

* feat(fe):
- Cleaned up code
- Improved code and made code reviews
- Changed some names as per naming conventions

* no message

* feat(be):
- Dropped and added some columns

* Fixed typo

* feat(fe):
- Added missing logic to add the incorporation number

* fix(be):
- Fixed unit tests after recent changes

* fix: adding missing field to the database

* feat(fe):
- Aligned id names to dto keys for validations practicity

* feat(fe):
- Added the vue mask library

* feat(fe):
- Removed unneeded column
- Added responsiveness in the table
- Beautified code

* fix(fe):
- Fixed some issues in the unit test

* fix(fe):
- Fixed some issues in the unit test

---------

Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>

* Frontend improvements (#400)

* no message

* feat(fe):
- First draft of the FE without JSON schema

* feat(fe):
- Draft of the FE without JSON schema #2

* feat(fe/be):
- Draft of the FE without JSON schema #3
- Changed data model

* feat(fe/be):
- Draft of the FE without JSON schema #4

* feat(fe/be):
- Draft of the FE without JSON schema #5

* feat(fe/be):
- Draft of the FE without JSON schema #5
- Completed Autocomplete
- Renamed some files

* feat(fe/be):
- Draft of the FE without JSON schema #6

* fix(fe/be):
- Fixed some issues in the SQL scripts and the unit test

* feat(fe/be):
- Draft of the FE without JSON schema #7
- Added missing validation components

* Dropped example

* fix(fe):
- Fixed some issues in the unit test

* feat(fe):
- Draft of the FE without JSON schema #8
- Improved code and made code reviews

* fix: fixing tests

* feat(fe):
- Cleaned up code
- Improved code and made code reviews

* feat(fe):
- Cleaned up code
- Improved code and made code reviews
- Changed some names as per naming conventions

* no message

* feat(be):
- Dropped and added some columns

* Fixed typo

* feat(fe):
- Added missing logic to add the incorporation number

* fix(be):
- Fixed unit tests after recent changes

* fix: adding missing field to the database

* feat(fe):
- Aligned id names to dto keys for validations practicity

* feat(fe):
- Added the vue mask library

* feat(fe):
- Removed unneeded column
- Added responsiveness in the table
- Beautified code

* fix(fe):
- Fixed some issues in the unit test

* fix(fe):
- Fixed some issues in the unit test

---------

Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>

* Frontend improvements (#400)

* no message

* feat(fe):
- First draft of the FE without JSON schema

* feat(fe):
- Draft of the FE without JSON schema #2

* feat(fe/be):
- Draft of the FE without JSON schema #3
- Changed data model

* feat(fe/be):
- Draft of the FE without JSON schema #4

* feat(fe/be):
- Draft of the FE without JSON schema #5

* feat(fe/be):
- Draft of the FE without JSON schema #5
- Completed Autocomplete
- Renamed some files

* feat(fe/be):
- Draft of the FE without JSON schema #6

* fix(fe/be):
- Fixed some issues in the SQL scripts and the unit test

* feat(fe/be):
- Draft of the FE without JSON schema #7
- Added missing validation components

* Dropped example

* fix(fe):
- Fixed some issues in the unit test

* feat(fe):
- Draft of the FE without JSON schema #8
- Improved code and made code reviews

* fix: fixing tests

* feat(fe):
- Cleaned up code
- Improved code and made code reviews

* feat(fe):
- Cleaned up code
- Improved code and made code reviews
- Changed some names as per naming conventions

* no message

* feat(be):
- Dropped and added some columns

* Fixed typo

* feat(fe):
- Added missing logic to add the incorporation number

* fix(be):
- Fixed unit tests after recent changes

* fix: adding missing field to the database

* feat(fe):
- Aligned id names to dto keys for validations practicity

* feat(fe):
- Added the vue mask library

* feat(fe):
- Removed unneeded column
- Added responsiveness in the table
- Beautified code

* fix(fe):
- Fixed some issues in the unit test

* fix(fe):
- Fixed some issues in the unit test

---------

Co-authored-by: Paulo Gomes da Cruz Junior <[email protected]>

* Change backend and legacy to matrix format on github action (#404)

* chore: Change backend and legacy to matrix format on github action (#404)

* fix: fixing class parameter names

* chore: updating workflow

* fix: fixing workflow var and unifying secrets

- moving all secrets to init
- fixing variables used on workflow that missed the $ character
- renamed the secrets to be a single one
- moved vault stage to init step

* ci: fixing deploy of init

* Add single quotes to Vault vars

* Update README.md (#406)

* Update README.md

* Update README.md

* Bump deployer action version

* fix: fixing variable with space issue

* doc: updating swagger documentation

* fix: fixing secrets

* fix: reverting version for test

---------

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Maria Martinez <[email protected]>
Co-authored-by: brunoMarchiEncora <[email protected]>
Co-authored-by: Derek Roberts <[email protected]>
  • Loading branch information
5 people authored Mar 17, 2023
1 parent 36691b3 commit becdc94
Show file tree
Hide file tree
Showing 53 changed files with 3,376 additions and 1,903 deletions.
169 changes: 94 additions & 75 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,32 @@ jobs:
- codeql
env:
ZONE: test
DOMAIN: apps.silver.devops.gov.bc.ca
BROKER_URL: https://nr-broker.apps.silver.devops.gov.bc.ca
VAULT_ADDR: https://vault-iit.apps.silver.devops.gov.bc.ca
environment: test
runs-on: ubuntu-22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Broker
id: broker
uses: bcgov-nr/[email protected]
with:
broker_jwt: ${{ secrets.BROKER_JWT }}
provision_role_id: ${{ secrets.PROVISION_ROLE_ID }}
project_name: client
app_name: app-client
environment: test
- name: Import Secrets
id: secrets
uses: hashicorp/[email protected]
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ steps.broker.outputs.vault_token }}
exportEnv: 'false'
secrets: |
apps/data/test/client/app-client/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/test/client/app-client/db_proxy_read_only db_password | VAULT_DB_PASS;
- name: Deploys
uses: bcgov-nr/[email protected]
with:
Expand All @@ -130,7 +152,18 @@ jobs:
oc_server: ${{ secrets.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: false
parameters: -p ZONE=${{ env.ZONE }} -p NAME=${{ github.event.repository.name }}
parameters:
-p ZONE=${{ github.event.number }} -p NAME=${{ github.event.repository.name }}
-p ORACLEDB_USER=${{ steps.secrets.outputs.VAULT_DB_USER }}
-p ORACLEDB_PASSWORD=${{ steps.secrets.outputs.VAULT_DB_PASS }}
-p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }}
-p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }}
-p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }}
-p ORACLEDB_SECRET=${{ secrets.ORACLEDB_SECRET }}
-p BCREGISTRY_KEY='${{ secrets.BCREGISTRY_KEY }}'
-p BCREGISTRY_ACCOUNT='${{ secrets.BCREGISTRY_ACCOUNT }}'
-p CHES_CLIENT_ID=${{ secrets.CHES_CLIENT_ID }}
-p CHES_CLIENT_SECRET=${{ secrets.CHES_CLIENT_SECRET }}

test-database:
name: TEST Database
Expand Down Expand Up @@ -177,11 +210,10 @@ jobs:
verification_path: health
parameters:
-p ZONE=${{ env.ZONE }} -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/backend:${{ env.ZONE }}
-p CHES_CLIENT_ID=${{ secrets.CHES_CLIENT_ID }}
-p CHES_CLIENT_SECRET=${{ secrets.CHES_CLIENT_SECRET }}
-p PROMOTE=${{ github.repository }}/backend:${{ env.ZONE }}
-p CHES_TOKEN_URL='https://test.loginproxy.gov.bc.ca/auth/realms/comsvcauth/protocol/openid-connect/token'
-p CHES_API_URL='https://ches-test.api.gov.bc.ca/api/v1'
-p BCREGISTRY_URI='https://bcregistry-sandbox.apigee.net'

test-legacy:
name: TEST Legacy
Expand All @@ -194,25 +226,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Broker
id: broker
uses: bcgov-nr/[email protected]
with:
broker_jwt: ${{ secrets.BROKER_JWT }}
provision_role_id: ${{ secrets.PROVISION_ROLE_ID }}
project_name: client
app_name: app-client
environment: test
- name: Import Secrets
id: secrets
uses: hashicorp/[email protected]
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ steps.broker.outputs.vault_token }}
exportEnv: 'false'
secrets: |
apps/data/test/client/app-client/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/test/client/app-client/db_proxy_read_only db_password | VAULT_DB_PASS;

- name: Deploys
uses: bcgov-nr/[email protected]
with:
Expand All @@ -226,12 +240,7 @@ jobs:
parameters:
-p ZONE=${{ env.ZONE }} -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/legacy:${{ env.ZONE }}
-p ORACLEDB_USER=${{ steps.secrets.outputs.VAULT_DB_USER }}
-p ORACLEDB_PASSWORD=${{ steps.secrets.outputs.VAULT_DB_PASS }}
-p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }}
-p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }}
-p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }}
-p FOREST_API_URL=https://${{ github.event.repository.name }}-${{ env.ZONE }}-backend.${{ env.DOMAIN }}
-p FOREST_API_URL=https://${{ github.event.repository.name }}-${{ env.ZONE }}-backend.${{ env.DOMAIN }}

test-frontend:
name: TEST Frontend
Expand All @@ -258,19 +267,59 @@ jobs:
-p VITE_KEYCLOAK_URL=https://test.loginproxy.gov.bc.ca/auth
-p VITE_KEYCLOAK_CLIENT_ID=${{ secrets.KEYCLOAK_CLIENT_ID }}

image-promotions:
name: Promote images to PROD
needs:
- test-backend
- test-frontend
- test-legacy
runs-on: ubuntu-22.04
strategy:
matrix:
component: [backend, frontend, legacy]
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.component }}
target: test
tags: prod

prod-init:
name: PROD Init
needs:
- test-backend
- test-frontend
- test-legacy
- image-promotions
env:
ZONE: prod
DOMAIN: apps.silver.devops.gov.bc.ca
BROKER_URL: https://nr-broker.apps.silver.devops.gov.bc.ca
VAULT_ADDR: https://vault-iit.apps.silver.devops.gov.bc.ca
environment: prod
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Broker
id: broker
uses: bcgov-nr/[email protected]
with:
broker_jwt: ${{ secrets.BROKER_JWT }}
provision_role_id: ${{ secrets.PROVISION_ROLE_ID }}
project_name: client
app_name: app-client
environment: production
- name: Import Secrets
id: secrets
uses: hashicorp/[email protected]
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ steps.broker.outputs.vault_token }}
exportEnv: 'false'
secrets: |
apps/data/prod/client/app-client/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/prod/client/app-client/db_proxy_read_only db_password | VAULT_DB_PASS;
- name: Deploys
uses: bcgov-nr/[email protected]
with:
Expand All @@ -279,7 +328,18 @@ jobs:
oc_server: ${{ secrets.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: false
parameters: -p ZONE=${{ env.ZONE }} -p NAME=${{ github.event.repository.name }}
parameters:
-p ZONE=${{ github.event.number }} -p NAME=${{ github.event.repository.name }}
-p ORACLEDB_USER=${{ steps.secrets.outputs.VAULT_DB_USER }}
-p ORACLEDB_PASSWORD=${{ steps.secrets.outputs.VAULT_DB_PASS }}
-p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }}
-p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }}
-p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }}
-p ORACLEDB_SECRET=${{ secrets.ORACLEDB_SECRET }}
-p BCREGISTRY_KEY='${{ secrets.BCREGISTRY_KEY }}'
-p BCREGISTRY_ACCOUNT='${{ secrets.BCREGISTRY_ACCOUNT }}'
-p CHES_CLIENT_ID=${{ secrets.CHES_CLIENT_ID }}
-p CHES_CLIENT_SECRET=${{ secrets.CHES_CLIENT_SECRET }}

prod-database:
name: PROD Database
Expand Down Expand Up @@ -329,10 +389,9 @@ jobs:
parameters:
-p ZONE=${{ env.ZONE }} -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/backend:${{ env.PREV }}
-p CHES_CLIENT_ID=${{ secrets.CHES_CLIENT_ID }}
-p CHES_CLIENT_SECRET=${{ secrets.CHES_CLIENT_SECRET }}
-p CHES_TOKEN_URL='https://loginproxy.gov.bc.ca/auth/realms/comsvcauth/protocol/openid-connect/token'
-p CHES_API_URL='https://ches.api.gov.bc.ca/api/v1'
-p BCREGISTRY_URI='https://bcregistry-prod.apigee.net'

prod-legacy:
name: PROD Legacy
Expand All @@ -346,25 +405,6 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Broker
id: broker
uses: bcgov-nr/[email protected]
with:
broker_jwt: ${{ secrets.BROKER_JWT }}
provision_role_id: ${{ secrets.PROVISION_ROLE_ID }}
project_name: client
app_name: app-client
environment: production
- name: Import Secrets
id: secrets
uses: hashicorp/[email protected]
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ steps.broker.outputs.vault_token }}
exportEnv: 'false'
secrets: |
apps/data/prod/client/app-client/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/prod/client/app-client/db_proxy_read_only db_password | VAULT_DB_PASS;
- name: Deploys
uses: bcgov-nr/[email protected]
with:
Expand All @@ -378,12 +418,7 @@ jobs:
parameters:
-p ZONE=${{ env.ZONE }} -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/legacy:${{ env.PREV }}
-p ORACLEDB_USER=${{ steps.secrets.outputs.VAULT_DB_USER }}
-p ORACLEDB_PASSWORD=${{ steps.secrets.outputs.VAULT_DB_PASS }}
-p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }}
-p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }}
-p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }}
-p FOREST_API_URL=https://${{ github.event.repository.name }}-${{ env.ZONE }}-backend.${{ env.DOMAIN }}
-p FOREST_API_URL=https://${{ github.event.repository.name }}-${{ env.ZONE }}-backend.${{ env.DOMAIN }}

prod-frontend:
name: PROD Frontend
Expand Down Expand Up @@ -411,20 +446,4 @@ jobs:
-p VITE_KEYCLOAK_URL=https://loginproxy.gov.bc.ca/auth
-p VITE_KEYCLOAK_CLIENT_ID=${{ secrets.KEYCLOAK_CLIENT_ID }}

image-promotions:
name: Promote images to PROD
needs:
- prod-backend
- prod-frontend
- prod-legacy
runs-on: ubuntu-22.04
strategy:
matrix:
component: [backend, frontend, legacy]
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.component }}
target: test
tags: prod

Loading

0 comments on commit becdc94

Please sign in to comment.