fix: yaml path to secrets and env
- backoffice.secrets.* - backoffice.env
This commit is contained in:
parent
f9f22cd7f4
commit
75f9b1cf2d
4 changed files with 18 additions and 16 deletions
16
.github/workflows/deploy-to-staging.yml
vendored
16
.github/workflows/deploy-to-staging.yml
vendored
|
|
@ -110,10 +110,10 @@ jobs:
|
|||
--namespace=${{ env.NAMESPACE }} \
|
||||
-f ./charts/backoffice/values.staging.yaml \
|
||||
--set image.tag=${{ github.ref_name }}-${{ github.sha }} \
|
||||
--set secrets.databaseURL=dummy \
|
||||
--set secrets.nextauthSecret=dummy \
|
||||
--set secrets.googleClientID=dummy \
|
||||
--set secrets.googleClientSecret=dummy \
|
||||
--set backoffice.secrets.databaseURL=dummy \
|
||||
--set backoffice.secrets.nextauthSecret=dummy \
|
||||
--set backoffice.secrets.googleClientID=dummy \
|
||||
--set backoffice.secrets.googleClientSecret=dummy \
|
||||
backoffice \
|
||||
./charts/backoffice
|
||||
|
||||
|
|
@ -129,9 +129,9 @@ jobs:
|
|||
--namespace=${{ env.NAMESPACE }} \
|
||||
-f ./charts/backoffice/values.staging.yaml \
|
||||
--set image.tag=${{ github.ref_name }}-${{ github.sha }} \
|
||||
--set secrets.databaseURL=${{ secrets.DATABASE_URL }} \
|
||||
--set secrets.nextauthSecret=${{ secrets.NEXTAUTH_SECRET }} \
|
||||
--set secrets.googleClientID=${{ secrets.GOOGLE_CLIENT_ID }} \
|
||||
--set secrets.googleClientSecret=${{ secrets.GOOGLE_CLIENT_SECRET }} \
|
||||
--set backoffice.secrets.databaseURL=${{ secrets.DATABASE_URL }} \
|
||||
--set backoffice.secrets.nextauthSecret=${{ secrets.NEXTAUTH_SECRET }} \
|
||||
--set backoffice.secrets.googleClientID=${{ secrets.GOOGLE_CLIENT_ID }} \
|
||||
--set backoffice.secrets.googleClientSecret=${{ secrets.GOOGLE_CLIENT_SECRET }} \
|
||||
backoffice \
|
||||
./charts/backoffice
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ metadata:
|
|||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-weight": "-15"
|
||||
data:
|
||||
NODE_ENV: {{ .Values.env }}
|
||||
NODE_ENV: {{ .Values.backoffice.env }}
|
||||
NEXTAUTH_URL: "https://{{ .Values.ingress.host }}/"
|
||||
PORT: {{ .Values.service.portNumber | quote }}
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ ingress:
|
|||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
cert-manager.io/issuer: letsencrypt-prod
|
||||
|
||||
env: staging
|
||||
backoffice:
|
||||
env: staging
|
||||
|
|
|
|||
|
|
@ -29,9 +29,10 @@ resources:
|
|||
cpu: 100m
|
||||
memory: 128Mi
|
||||
|
||||
env: null
|
||||
backoffice:
|
||||
env: null
|
||||
|
||||
secrets:
|
||||
secrets:
|
||||
databaseURL: null
|
||||
nextauthSecret: null
|
||||
googleClientID: null
|
||||
|
|
|
|||
Reference in a new issue