Skip to content

Commit

Permalink
chore(ci): Update database service name. (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac authored Oct 25, 2024
1 parent c62fd6d commit c779e3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
file: database/openshift.deploy.yml
overwrite: true
parameters:
-p DATABASE_SERVICE_NAME=gwells-pg12-dev-${{ github.event.number }}
-p DATABASE_SERVICE_NAME=gwells-dev-${{ github.event.number }}-database
-p IMAGE_STREAM_NAMESPACE=${{ vars.OC_NAMESPACE }}
-p IMAGE_STREAM_NAME=crunchy-postgres-gis
-p IMAGE_TAG=${{ github.event.number }}
Expand Down
8 changes: 4 additions & 4 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,21 +203,21 @@ objects:
protocol: TCP
env:
- name: DATABASE_SERVICE_NAME
value: gwells-pg12${NAME_SUFFIX}
value: gwells${NAME_SUFFIX}-database
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
name: gwells-pg12${NAME_SUFFIX}
name: gwells${NAME_SUFFIX}-database
key: database-name
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: gwells-pg12${NAME_SUFFIX}
name: gwells${NAME_SUFFIX}-database
key: database-user
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: gwells-pg12${NAME_SUFFIX}
name: gwells${NAME_SUFFIX}-database
key: database-password
- name: DATABASE_SCHEMA
value: public
Expand Down
2 changes: 1 addition & 1 deletion common/openshift.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ objects:
- apiVersion: v1
kind: Secret
metadata:
name: gwells-pg12${NAME_SUFFIX}
name: gwells${NAME_SUFFIX}-database
stringData:
database-name: ${POSTGRESQL_DATABASE}
database-password: ${POSTGRESQL_PASSWORD}
Expand Down

0 comments on commit c779e3e

Please sign in to comment.