From a1345b333db3a52554f641330cacb992788da246 Mon Sep 17 00:00:00 2001 From: minijus <3633549+minijus@users.noreply.github.com> Date: Sun, 6 Oct 2024 12:25:04 +0300 Subject: [PATCH] fix: set GitHub env variables on frontend deployment --- .../templates/nx-cloud-frontend-deployment.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/nx-cloud/templates/nx-cloud-frontend-deployment.yaml b/charts/nx-cloud/templates/nx-cloud-frontend-deployment.yaml index 7228683..d8ec54f 100644 --- a/charts/nx-cloud/templates/nx-cloud-frontend-deployment.yaml +++ b/charts/nx-cloud/templates/nx-cloud-frontend-deployment.yaml @@ -80,8 +80,22 @@ spec: name: {{ .name }} key: {{ .githubPrivateKey }} {{- end }} + {{- if .githubAppClientId }} + - name: NX_CLOUD_GITHUB_APP_CLIENT_ID + valueFrom: + secretKeyRef: + name: {{ .name }} + key: {{ .githubAppClientId }} + {{- end }} + {{- if .githubAppClientSecret }} + - name: NX_CLOUD_GITHUB_APP_CLIENT_SECRET + valueFrom: + secretKeyRef: + name: {{ .name }} + key: {{ .githubAppClientSecret }} + {{- end }} {{- if .githubAppId }} - - name: NX_CLOUD_GITHUB_APP_ID + - name: NX_CLOUD_GITHUB_APP_APP_ID valueFrom: secretKeyRef: name: {{ .name }}