From eb79e6bdc9a81d5b7dac9921fdcefb6647c413b9 Mon Sep 17 00:00:00 2001 From: liuyi Date: Wed, 21 Feb 2024 03:01:33 +0000 Subject: [PATCH] ci: fix canary deployment (#5851) --- .../affine/charts/graphql/templates/mailer.yaml | 13 +++++++++++++ .../helm/affine/charts/graphql/templates/oauth.yaml | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 .github/helm/affine/charts/graphql/templates/mailer.yaml diff --git a/.github/helm/affine/charts/graphql/templates/mailer.yaml b/.github/helm/affine/charts/graphql/templates/mailer.yaml new file mode 100644 index 0000000000..2ce5174441 --- /dev/null +++ b/.github/helm/affine/charts/graphql/templates/mailer.yaml @@ -0,0 +1,13 @@ +{{- if .Values.app.mailer.secretName -}} +apiVersion: v1 +kind: Secret +metadata: + name: "{{ .Values.app.mailer.secretName }}" +type: Opaque +data: + host: "{{ .Values.app.mailer.host | b64enc }}" + port: "{{ .Values.app.mailer.port | b64enc }}" + user: "{{ .Values.app.mailer.user | b64enc }}" + password: "{{ .Values.app.mailer.password | b64enc }}" + sender: "{{ .Values.app.mailer.sender | b64enc }}" +{{- end }} diff --git a/.github/helm/affine/charts/graphql/templates/oauth.yaml b/.github/helm/affine/charts/graphql/templates/oauth.yaml index 300bcc60ea..08d8ccd0cc 100644 --- a/.github/helm/affine/charts/graphql/templates/oauth.yaml +++ b/.github/helm/affine/charts/graphql/templates/oauth.yaml @@ -1,15 +1,3 @@ -apiVersion: v1 -kind: Secret -metadata: - name: "{{ .Values.app.oauth.email.secretName }}" -type: Opaque -data: - sender: "{{ .Values.app.oauth.email.sender | b64enc }}" - login: "{{ .Values.app.oauth.email.login | b64enc }}" - password: "{{ .Values.app.oauth.email.password | b64enc }}" - server: "{{ .Values.app.oauth.email.server | b64enc }}" - port: "{{ .Values.app.oauth.email.port | b64enc }}" ---- {{- if .Values.app.oauth.google.enabled -}} apiVersion: v1 kind: Secret