diff --git a/.github/workflows/.deploy.yml b/.github/workflows/.deploy.yml index c1dd375..09f6f8f 100644 --- a/.github/workflows/.deploy.yml +++ b/.github/workflows/.deploy.yml @@ -77,6 +77,7 @@ jobs: -p IMAGE_TAG=${{ inputs.tag }} -p TARGET=${{ inputs.target }} -p SSOAUTH=${{ vars.SSO_AUTH_SERVER_URL }} + -p DB_PASSWORD=${{ secrets.DB_PASSWORD }} verification_path: /api/health verification_retry_attempts: "5" verification_retry_seconds: "15" diff --git a/backend/openshift.deploy.yml b/backend/openshift.deploy.yml index 7244fa5..58d10dd 100644 --- a/backend/openshift.deploy.yml +++ b/backend/openshift.deploy.yml @@ -18,8 +18,7 @@ parameters: required: true - name: DB_PASSWORD description: Password for the PostgreSQL connection user. - from: '[a-zA-Z0-9]{16}' - generate: expression + required: true - name: SSOAUTH description: SSO Auth Server URL required: true @@ -102,7 +101,7 @@ objects: - name: BACKEND_URL value: https://${APP}-${TARGET}-${COMPONENT}.apps.silver.devops.gov.bc.ca - name: DATABASE_URL - value: postgresql://postgres:${DB_PASSWORD}@postgres:5432/postgres + value: nr-nmp-database-${TARGET}://postgres:${DB_PASSWORD}@nr-nmp-database-${TARGET}:5432/postgres ports: - containerPort: 3000 protocol: TCP