@@ -111,6 +111,28 @@ jobs:
111111 helm uninstall studymate -n studymate --wait
112112 echo "⏳ Waiting for resources cleanup..."
113113 sleep 30
114+ echo "📦 Upgrading existing Helm release..."
115+ helm upgrade studymate ./infra/helm -n studymate \
116+ --set ingress.host="${DOMAIN}" \
117+ --set client.image.tag="k8s-latest" \
118+ --set-string secrets.postgres.data.password="${{ secrets.POSTGRES_PASSWORD }}" \
119+ --set-string secrets.auth.data.jwtSecret="${{ secrets.JWT_SECRET }}" \
120+ --set-string secrets.genai.data.openWebUiApiKeyChat="${OPEN_WEBUI_API_KEY_CHAT}" \
121+ --set-string secrets.genai.data.openWebUiApiKeyGen="${OPEN_WEBUI_API_KEY_GEN}" \
122+ --set-string secrets.genai.data.langsmithApiKey="${LANGSMITH_API_KEY}" \
123+ --wait --timeout=10m
124+ else
125+ echo "📦 Installing new Helm release..."
126+ kubectl create namespace studymate --dry-run=client -o yaml | kubectl apply -f -
127+ helm install studymate ./infra/helm -n studymate \
128+ --set ingress.host="${DOMAIN}" \
129+ --set client.image.tag="k8s-latest" \
130+ --set-string secrets.postgres.data.password="${{ secrets.POSTGRES_PASSWORD }}" \
131+ --set-string secrets.auth.data.jwtSecret="${{ secrets.JWT_SECRET }}" \
132+ --set-string secrets.genai.data.openWebUiApiKeyChat="${OPEN_WEBUI_API_KEY_CHAT}" \
133+ --set-string secrets.genai.data.openWebUiApiKeyGen="${OPEN_WEBUI_API_KEY_GEN}" \
134+ --set-string secrets.genai.data.langsmithApiKey="${LANGSMITH_API_KEY}" \
135+ --wait --timeout=10m
114136 fi
115137 echo "📦 Installing fresh Helm release..."
116138 kubectl create namespace studymate --dry-run=client -o yaml | kubectl apply -f -
0 commit comments