From 845aba443b4433d67f83fd408858f580b4dd90eb Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Fri, 17 Apr 2026 14:21:15 +0800 Subject: [PATCH] fix(deploy): add APP_REPOS_ROOT env to git-hook deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Missing env var — git-hook worker needs APP_REPOS_ROOT to resolve repo storage paths. Added explicit env block with APP_REPOS_ROOT=/data/repos, consistent with gitserver deployment. --- deploy/templates/git-hook-deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/templates/git-hook-deployment.yaml b/deploy/templates/git-hook-deployment.yaml index eeb3809..7968c88 100644 --- a/deploy/templates/git-hook-deployment.yaml +++ b/deploy/templates/git-hook-deployment.yaml @@ -33,6 +33,9 @@ spec: envFrom: - configMapRef: name: {{ include "gitdata.fullname" . }}-config + env: + - name: APP_REPOS_ROOT + value: /data/repos {{- range .Values.gitHook.env }} - name: {{ .name }} value: {{ .value | quote }}