diff --git a/.github/helm/affine/charts/doc/templates/deployment.yaml b/.github/helm/affine/charts/doc/templates/deployment.yaml index 64d5a8d09f..82f3c57283 100644 --- a/.github/helm/affine/charts/doc/templates/deployment.yaml +++ b/.github/helm/affine/charts/doc/templates/deployment.yaml @@ -75,6 +75,23 @@ spec: value: "{{ .Values.app.host }}" - name: AFFINE_SERVER_HTTPS value: "{{ .Values.app.https }}" + {{ if .Values.global.objectStorage.r2.enabled }} + - name: R2_OBJECT_STORAGE_ACCOUNT_ID + valueFrom: + secretKeyRef: + name: "{{ .Values.global.objectStorage.r2.secretName }}" + key: accountId + - name: R2_OBJECT_STORAGE_ACCESS_KEY_ID + valueFrom: + secretKeyRef: + name: "{{ .Values.global.objectStorage.r2.secretName }}" + key: accessKeyId + - name: R2_OBJECT_STORAGE_SECRET_ACCESS_KEY + valueFrom: + secretKeyRef: + name: "{{ .Values.global.objectStorage.r2.secretName }}" + key: secretAccessKey + {{ end }} {{ if .Values.app.copilot.enabled }} - name: COPILOT_OPENAI_API_KEY valueFrom: