Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
ci: remove Vault for dev deployment (#62)
Browse files Browse the repository at this point in the history
* Revert "fix: use dev credentials in test and prod for now (#53)"

This reverts commit 0ca3de4.

* Revert "feat: grab secrets from Vault (#52)"

This reverts commit 4524612.

* ci: delete unused OpenShift deployment templates

* ci: update deployment message

Add a link to the recently deployed service.

* ci: keep Vault for test and prod deployments
  • Loading branch information
annibalsilva authored Jan 19, 2023
1 parent 2d40b8f commit 877854a
Showing 2 changed files with 8 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
@@ -214,14 +214,14 @@ jobs:
steps:
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v2.2.0
uses: hashicorp/vault-action@v2
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ secrets.VAULT_TOKEN }}
exportEnv: 'false'
secrets: |
apps/data/dev/spar/app-spar/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/dev/spar/app-spar/db_proxy_read_only db_password | VAULT_DB_PASS;
apps/data/test/spar/app-spar/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/test/spar/app-spar/db_proxy_read_only db_password | VAULT_DB_PASS;
- uses: actions/checkout@v3
- name: Print NRBESTAPI_VERSION env
@@ -407,14 +407,14 @@ jobs:
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v2.2.0
uses: hashicorp/vault-action@v2
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ secrets.VAULT_TOKEN }}
exportEnv: 'false'
secrets: |
apps/data/dev/spar/app-spar/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/dev/spar/app-spar/db_proxy_read_only db_password | VAULT_DB_PASS;
apps/data/prod/spar/app-spar/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/prod/spar/app-spar/db_proxy_read_only db_password | VAULT_DB_PASS;
- uses: actions/checkout@v3
- name: Print NRBESTAPI_VERSION env
15 changes: 2 additions & 13 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
@@ -336,17 +336,6 @@ jobs:
ZONE: ${{ github.event.number }}
NRBESTAPI_VERSION: snapshot-${{ github.event.number }}
steps:
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v2.2.0
with:
url: https://vault-iit.apps.silver.devops.gov.bc.ca
token: ${{ secrets.VAULT_TOKEN }}
exportEnv: 'false'
secrets: |
apps/data/dev/spar/app-spar/db_proxy_read_only db_username | VAULT_DB_USER;
apps/data/dev/spar/app-spar/db_proxy_read_only db_password | VAULT_DB_PASS;
- uses: actions/checkout@v3
- name: Deploy
run: |
@@ -369,8 +358,8 @@ jobs:
-p DATABASE_HOST=${{ secrets.DATABASE_HOST }} \
-p DATABASE_PORT=${{ secrets.DATABASE_PORT }} \
-p SERVICE_NAME=${{ secrets.SERVICE_NAME }} \
-p DATABASE_USER=${{ steps.secrets.outputs.VAULT_DB_USER }} \
-p DATABASE_PASSWORD=${{ steps.secrets.outputs.VAULT_DB_PASS }} \
-p DATABASE_USER=${{ secrets.DATABASE_USER }} \
-p DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }} \
-p KEYCLOAK_REALM_URL=${{ secrets.KEYCLOAK_REALM_URL }} \
-p PROMOTE=${{ github.repository }}:${{ env.ZONE }}-service-api | oc apply -f -

0 comments on commit 877854a

Please sign in to comment.