ci: the installer check requires non-empty secrets

This commit is contained in:
Alex committed 2026-09-16 01:10:11 +01:00
1 parent 49823a6859
commit 6afce45913
1 file changed
+3 -2
+3 -2
View File
@@ -118,9 +118,10 @@ jobs:
stack="$HOME/.docsgpt/server"
"$docsgpt" status
curl -fsS http://127.0.0.1:7091/ | grep -q 'src="/config.js"'
grep -q '^POSTGRES_PASSWORD=' "$stack/.env"
# The secrets must have values: an empty one would fall back to a default silently.
grep -Eq '^POSTGRES_PASSWORD=.+$' "$stack/.env"
# Running the installer again upgrades in place and keeps the generated secrets.
before=$(grep '^JWT_SECRET_KEY=' "$stack/.env")
before=$(grep -E '^JWT_SECRET_KEY=.+$' "$stack/.env")
bash deployment/install.sh --image-tag verify </dev/null
[ "$(grep '^JWT_SECRET_KEY=' "$stack/.env")" = "$before" ]
"$docsgpt" uninstall --yes --purge