Skip to content

Commit

Permalink
chore(ci): Update init deployment secrets. (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac authored Nov 27, 2024
1 parent 61c3a8a commit f9da213
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
parameters:
-p NAME_SUFFIX=${{ inputs.target }}
-p POSTGRESQL_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
-p POSTGRESQL_USER=${{ secrets.POSTGRES_USER }}
-p FDW_DATABASE_PASSWORD=${{ secrets.FDW_DATABASE_PASSWORD }}
-p DJANGO_ADMIN_PASSWORD=${{ secrets.DJANGO_ADMIN_PASSWORD }}
-p DJANGO_ADMIN_URL=${{ secrets.DJANGO_ADMIN_URL }}
Expand Down
2 changes: 1 addition & 1 deletion common/openshift.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ objects:
kind: Secret
metadata:
creationTimestamp:
name: crunchy-db-credentials
name: crunchy-db-credentials-${NAME_SUFFIX}
labels:
app: nr-gwells-${NAME_SUFFIX}
stringData:
Expand Down
8 changes: 4 additions & 4 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,22 @@ objects:
valueFrom:
secretKeyRef:
key: PG_MODE
name: crunchy-db-credentials
name: crunchy-db-credentials-${NAME_SUFFIX}
- name: PG_PRIMARY_PASSWORD
valueFrom:
secretKeyRef:
key: PG_PRIMARY_PASSWORD
name: crunchy-db-credentials
name: crunchy-db-credentials-${NAME_SUFFIX}
- name: PG_PRIMARY_USER
valueFrom:
secretKeyRef:
key: PG_PRIMARY_USER
name: crunchy-db-credentials
name: crunchy-db-credentials-${NAME_SUFFIX}
- name: PG_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: PG_ROOT_PASSWORD
name: crunchy-db-credentials
name: crunchy-db-credentials-${NAME_SUFFIX}
image: "ghcr.io/bcgov/nr-gwells/database:${IMAGE_TAG}"
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down

0 comments on commit f9da213

Please sign in to comment.