-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15499 Firebase deployment and convert configmap and keycloak to .env (#…
…529) * 15499 Firebase deployment and convert configmap and keycloak to .env * Replace PaySystemAlert banner to banner text. * Fixed the function name issue. * Remove firebase.json * Fixed for code review. * Fixed missing configs. * Fixed the security header * Fixed the APP Path issue in CD * Fixed the OCP deployment issue.
- Loading branch information
Showing
20 changed files
with
379 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Base Path Openshift: businesses/create Firebase: | ||
VUE_APP_PATH=businesses/create | ||
|
||
#vaults Shared | ||
VUE_APP_ADDRESS_COMPLETE_KEY= | ||
|
||
#vaults web-url | ||
VUE_APP_REGISTRY_HOME_URL="https://dev.bcros.ca/" | ||
VUE_APP_AUTH_WEB_URL="https://dev.bcregistry.ca/business/auth/" | ||
VUE_APP_BUSINESSES_URL="https://dev.bcregistry.ca/business/auth/" | ||
VUE_APP_DASHBOARD_URL="https://dev.bcregistry.ca/business/" | ||
VUE_APP_SITEMINDER_LOGOUT_URL="https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi" | ||
|
||
#vaults API | ||
VUE_APP_AUTH_API_URL="https://auth-api-dev.apps.silver.devops.gov.bc.ca" | ||
VUE_APP_AUTH_API_VERSION="/api/v1" | ||
VUE_APP_LEGAL_API_URL="https://legal-api-dev.apps.silver.devops.gov.bc.ca" | ||
VUE_APP_LEGAL_API_VERSION_2="/api/v2" | ||
VUE_APP_NAICS_API_URL="https://legal-api-dev.apps.silver.devops.gov.bc.ca" | ||
VUE_APP_NAICS_API_VERSION_2="/api/v2" | ||
VUE_APP_STATUS_API_URL="https://status-api-dev.apps.silver.devops.gov.bc.ca" | ||
VUE_APP_STATUS_API_VERSION="/api/v1" | ||
VUE_APP_PAY_API_URL="https://pay-api-dev.apps.silver.devops.gov.bc.ca" | ||
VUE_APP_PAY_API_VERSION="/api/v1" | ||
VUE_APP_REGISTRIES_SEARCH_API_URL="https://bcregistry-dev.apigee.net/registry-search" | ||
VUE_APP_REGISTRIES_SEARCH_API_VERSION="/api/v1" | ||
VUE_APP_REGISTRIES_SEARCH_API_KEY= | ||
|
||
#vaults launchdarkly | ||
VUE_APP_BUSINESS_CREATE_LD_CLIENT_ID= | ||
|
||
#vaults keycloak | ||
VUE_APP_KEYCLOAK_AUTH_URL="https://dev.loginproxy.gov.bc.ca/auth" | ||
VUE_APP_KEYCLOAK_REALM="bcregistry" | ||
VUE_APP_KEYCLOAK_CLIENTID="entity-web" | ||
|
||
#vaults sentry | ||
VUE_APP_SENTRY_DSN= | ||
|
||
#vaults hotjar | ||
VUE_APP_HOTJAR_ID= | ||
VUE_APP_IA_SURVEY_ID= | ||
|
||
#vaults webchat | ||
VUE_APP_GENESYS_ENV= | ||
VUE_APP_GENESYS_URL= | ||
VUE_APP_GENESYS_ID= | ||
VUE_APP_WEBCHAT_URL= | ||
VUE_APP_WEBCHAT_REASON= | ||
VUE_APP_WEBCHAT_STATUS_URL= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: BUSINESS CREATE UI CD - GCP | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: "Environment" | ||
required: true | ||
type: choice | ||
options: | ||
- dev | ||
- test | ||
- sandbox | ||
- prod | ||
tagname: | ||
description: "Specify a previous version (git tag) to deploy" | ||
required: false | ||
default: "" | ||
|
||
jobs: | ||
business-create-ui-cd: | ||
uses: bcgov/bcregistry-sre/.github/workflows/ui-cd.yaml@main | ||
with: | ||
environment: ${{ inputs.environment }} | ||
tagname: ${{ inputs.tagname }} | ||
secrets: | ||
APP_NAME: "business-create" | ||
OP_CONNECT_URL: ${{ secrets.OP_CONNECT_URL }} | ||
OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,3 +143,7 @@ yarn-error.log* | |
|
||
# IDE history | ||
.history | ||
|
||
# Firebase | ||
.firebase | ||
*.firebaserc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
steps: | ||
# install / setup ci | ||
- name: node:$_DEPLOYMENT_NODE_VERSION | ||
entrypoint: npm | ||
args: ['install'] | ||
|
||
# | ||
# Generate the static site | ||
# | ||
- name: node:$_DEPLOYMENT_NODE_VERSION | ||
entrypoint: npm | ||
args: ['--openssl-legacy-provider', 'run', 'build'] | ||
|
||
# | ||
# Deploy to firebase channel, using the PR # | ||
# store log to /workspace to get the channel URL | ||
# | ||
- name: gcr.io/$_DEPLOYMENT_PROJECT/firebase | ||
entrypoint: bash | ||
args: ['-c', 'firebase deploy --project=$_DEPLOYMENT_PROJECT --config=firebase-$_DEPLOYMENT_ENVIRONMENT.json --only hosting:$_DEPLOYMENT_HOST_NAME'] | ||
|
||
substitutions: | ||
_DEPLOYMENT_ENVIRONMENT: '${_DEPLOYMENT_ENVIRONMENT}' | ||
_DEPLOYMENT_PROJECT: '${_DEPLOYMENT_PROJECT}' | ||
_DEPLOYMENT_NODE_VERSION: '${_DEPLOYMENT_NODE_VERSION}' | ||
_DEPLOYMENT_HOST_NAME: '${_DEPLOYMENT_HOST_NAME}' | ||
|
||
|
||
options: | ||
logging: CLOUD_LOGGING_ONLY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Base Path Openshift: businesses/create Firebase: | ||
VUE_APP_PATH= | ||
|
||
#vaults Shared | ||
VUE_APP_ADDRESS_COMPLETE_KEY="op://canadapost/$APP_ENV/address-key/ADDRESS_COMPLETE_KEY" | ||
|
||
#vaults web-url | ||
VUE_APP_REGISTRY_HOME_URL="op://web-url/$APP_ENV/registry/REGISTRY_HOME_URL" | ||
VUE_APP_AUTH_WEB_URL="op://web-url/$APP_ENV/auth-web/AUTH_WEB_URL" | ||
VUE_APP_BUSINESSES_URL="op://web-url/$APP_ENV/business/BUSINESSES_URL" | ||
VUE_APP_DASHBOARD_URL="op://web-url/$APP_ENV/business/DASHBOARD_URL" | ||
VUE_APP_SITEMINDER_LOGOUT_URL="op://web-url/$APP_ENV/siteminder/SITEMINDER_LOGOUT_URL" | ||
|
||
#vaults API | ||
VUE_APP_AUTH_API_URL="op://API/$APP_ENV/auth-api/AUTH_API_URL" | ||
VUE_APP_AUTH_API_VERSION="op://API/$APP_ENV/auth-api/AUTH_API_VERSION" | ||
VUE_APP_LEGAL_API_URL="op://API/$APP_ENV/legal-api/LEGAL_API_URL" | ||
VUE_APP_LEGAL_API_VERSION_2="op://API/$APP_ENV/legal-api/LEGAL_API_VERSION_2" | ||
VUE_APP_NAICS_API_URL="op://API/$APP_ENV/naics-api/NAICS_API_URL" | ||
VUE_APP_NAICS_API_VERSION_2="op://API/$APP_ENV/naics-api/NAICS_API_VERSION" | ||
VUE_APP_STATUS_API_URL="op://API/$APP_ENV/status-api/STATUS_API_URL" | ||
VUE_APP_STATUS_API_VERSION="op://API/$APP_ENV/status-api/STATUS_API_VERSION" | ||
VUE_APP_PAY_API_URL="op://API/$APP_ENV/pay-api/PAY_API_URL" | ||
VUE_APP_PAY_API_VERSION="op://API/$APP_ENV/pay-api/PAY_API_VERSION" | ||
VUE_APP_REGISTRIES_SEARCH_API_URL="op://API/$APP_ENV/registries-search-api/REGISTRIES_SEARCH_API_URL" | ||
VUE_APP_REGISTRIES_SEARCH_API_VERSION="op://API/$APP_ENV/registries-search-api/REGISTRIES_SEARCH_API_VERSION" | ||
VUE_APP_REGISTRIES_SEARCH_API_KEY="op://API/$APP_ENV/registries-search-api/REGISTRIES_SEARCH_API_KEY" | ||
|
||
#vaults launchdarkly | ||
VUE_APP_BUSINESS_CREATE_LD_CLIENT_ID="op://launchdarkly/$APP_ENV/business-create/BUSINESS_CREATE_LD_CLIENT_ID" | ||
|
||
#vaults keycloak | ||
VUE_APP_KEYCLOAK_AUTH_URL="op://keycloak/$APP_ENV/base/KEYCLOAK_AUTH_BASE_URL" | ||
VUE_APP_KEYCLOAK_REALM="op://keycloak/$APP_ENV/base/KEYCLOAK_REALMNAME" | ||
VUE_APP_KEYCLOAK_CLIENTID="op://keycloak/$APP_ENV/entity-web/UI_KEYCLOAK_RESOURCE_NAME" | ||
|
||
#vaults sentry | ||
VUE_APP_SENTRY_DSN="op://sentry/$APP_ENV/entity/SENTRY_DSN" | ||
|
||
#vaults hotjar (hotjar id - ready to use) | ||
VUE_APP_HOTJAR_ID= | ||
VUE_APP_IA_SURVEY_ID="op://hotjar/$APP_ENV/shared/IA_SURVEY_ID" | ||
|
||
#vaults webchat | ||
VUE_APP_GENESYS_ENV="op://webchat/$APP_ENV/base/GENESYS_ENV" | ||
VUE_APP_GENESYS_URL="op://webchat/$APP_ENV/base/GENESYS_URL" | ||
VUE_APP_GENESYS_ID="op://webchat/$APP_ENV/business-create-ui/GENESYS_ID" | ||
VUE_APP_WEBCHAT_URL="op://webchat/$APP_ENV/base/WEBCHAT_URL" | ||
VUE_APP_WEBCHAT_REASON="op://webchat/$APP_ENV/business-create-ui/WEBCHAT_REASON" | ||
VUE_APP_WEBCHAT_STATUS_URL="op://webchat/$APP_ENV/business-create-ui/WEBCHAT_STATUS_URL" |
Oops, something went wrong.