Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up for new domain name changes. #595

Merged
merged 3 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
VUE_APP_PATH=/namerequest
VUE_APP_PATH="/"

#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_ENTITY_SELECTOR_URL=https://entity-selection-dev.apps.silver.devops.gov.bc.ca/
VUE_APP_PAYMENT_PORTAL_URL=https://dev.bcregistry.ca/business/auth/makepayment/
VUE_APP_SITEMINDER_LOGOUT_URL=https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi
VUE_APP_REGISTRY_HOME_URL="https://dev.bcregistry.gov.bc.ca/"
VUE_APP_AUTH_WEB_URL="https://dev.account.bcregistry.gov.bc.ca/"
VUE_APP_BUSINESSES_URL="https://dev.account.bcregistry.gov.bc.ca/"
VUE_APP_DASHBOARD_URL="https://dev.business.bcregistry.gov.bc.ca/"
VUE_APP_ENTITY_SELECTOR_URL="https://entity-selection-dev.apps.silver.devops.gov.bc.ca/"
VUE_APP_PAYMENT_PORTAL_URL="https://dev.account.bcregistry.gov.bc.ca/makepayment/"
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=/api/v1
VUE_APP_NAMEX_API_URL=https://namex-dev.apps.silver.devops.gov.bc.ca
VUE_APP_NAMEX_API_VERSION=/api/v1
VUE_APP_STATUS_API_URL=https://status-api-dev.apps.silver.devops.gov.bc.ca
VUE_APP_STATUS_API_VERSION=/api/v1
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="/api/v1"
VUE_APP_NAMEX_API_URL="https://namex-dev.apps.silver.devops.gov.bc.ca"
VUE_APP_NAMEX_API_VERSION="/api/v1"
VUE_APP_STATUS_API_URL="https://status-api-dev.apps.silver.devops.gov.bc.ca"
VUE_APP_STATUS_API_VERSION="/api/v1"


#vaults launchdarkly
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cd-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
namerequest-ui-cd:
uses: bcgov/bcregistry-sre/.github/workflows/ui-cd.yaml@main
with:
app_name: "namerequest"
environment: ${{ inputs.environment }}
tagname: ${{ inputs.tagname }}
secrets:
Expand Down
30 changes: 0 additions & 30 deletions devops/cloudbuild-cd.yaml

This file was deleted.

60 changes: 60 additions & 0 deletions devops/cloudbuild-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
steps:
# install / setup ci
- name: node:16.14.2
entrypoint: npm
args: ['install']

- name: 'bash'
script: |
#!/usr/bin/env bash
cp .env.example .env

#
# Generate the static site
#
- name: node:16.14.2
entrypoint: npm
env:
- 'VUE_APP_NAMEREQUEST_LD_CLIENT_ID=$_VUE_APP_NAMEREQUEST_LD_CLIENT_ID'
- 'VUE_APP_GENESYS_ENV=$_VUE_APP_GENESYS_ENV'
- 'VUE_APP_GENESYS_URL=$_VUE_APP_GENESYS_URL'
- 'VUE_APP_GENESYS_ID=$_VUE_APP_GENESYS_ID'
- 'VUE_APP_WEBCHAT_URL=$_VUE_APP_WEBCHAT_URL'
- 'VUE_APP_WEBCHAT_REASON=$_VUE_APP_WEBCHAT_REASON'
- 'VUE_APP_WEBCHAT_STATUS_URL=$_VUE_APP_WEBCHAT_STATUS_URL'
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/yfthig-dev/firebase
entrypoint: bash
args: ['-c', 'firebase hosting:channel:deploy --project=yfthig-dev PR-$_PR_NUMBER > /workspace/firebase-deploy.txt']

#
# Update the PR with the temporary URL
#
- id: "Update the PR"
name: gcr.io/cloud-builders/curl
entrypoint: bash
args:
- -c
- |
# Read from "/workspace"
cat /workspace/firebase-deploy.txt
url=`cat /workspace/firebase-deploy.txt| grep 'Channel URL'| cut -c 54-| cut -d ' ' -f 1`
echo "this is the body:"
echo '{"body": "Temporary Url for review:'"$url"'"}'
curl -X POST \
https://api.github.com/repos/bcgov/namerequest/issues/$_PR_NUMBER/comments \
--header "Authorization: Token $$TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data-binary '{"body": "Temporary Url for review: '"$url"'"}'
secretEnv: ['TOKEN']
availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/token-pr-review/versions/latest
env: 'TOKEN'
options:
dynamic_substitutions: true
Empty file removed devops/k8s/README.md
Empty file.
Binary file removed devops/k8s/templates/.DS_Store
Binary file not shown.
99 changes: 0 additions & 99 deletions devops/k8s/templates/namerequest-ui-bc.tools.json

This file was deleted.

155 changes: 0 additions & 155 deletions devops/k8s/templates/namerequest-ui-dc.json

This file was deleted.

Loading