-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove BS VAULT
- Loading branch information
Showing
1 changed file
with
5 additions
and
27 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 |
---|---|---|
|
@@ -56,29 +56,7 @@ jobs: | |
secret_path_env: dev # this path is different from the path in the broker | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Broker | ||
id: broker | ||
uses: bcgov-nr/[email protected] | ||
with: | ||
broker_jwt: ${{ secrets.BROKER_JWT }} | ||
provision_role_id: ${{ secrets.PROVISION_ROLE }} | ||
project_name: ${{ env.project_name }} | ||
app_name: ${{ env.app_name }} | ||
environment: ${{ env.environment }} | ||
- 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: 'true' | ||
secrets: | | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbHost | DB_HOST; | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbName | DB_NAME; | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbPassword | DB_PWD; | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbUser | DB_USER; | ||
|
||
- name: Deploy to Openshift | ||
working-directory: charts/nr-oracle-service | ||
shell: bash | ||
|
@@ -93,10 +71,10 @@ jobs: | |
helm package --app-version="${{ github.event.number }}" --version=${{ github.event.number }} . | ||
helm upgrade \ | ||
--set-string app.envs.DB_HOST=${{ steps.secrets.outputs.DB_HOST }} \ | ||
--set-string app.envs.DB_NAME=${{ steps.secrets.outputs.DB_NAME }} \ | ||
--set-string app.envs.DB_PASSWORD=${{ steps.secrets.outputs.DB_PWD }} \ | ||
--set-string app.envs.DB_USER=${{ steps.secrets.outputs.DB_USER }} \ | ||
--set-string app.envs.DB_HOST=${{ secrets.DB_HOST }} \ | ||
--set-string app.envs.DB_NAME=${{ secrets.DB_NAME }} \ | ||
--set-string app.envs.DB_PASSWORD=${{ secrets.DB_PWD }} \ | ||
--set-string app.envs.DB_USER=${{ secrets.DB_USER }} \ | ||
--set-string app.envs.DB_PORT="1543" \ | ||
--set-string image.tag="${{ github.event.number }}" \ | ||
--set-string namespace=${{ vars.oc_namespace }} \ | ||
|