feat(deploy): add production one-click deployment

This commit is contained in:
2026-09-11 14:10:39 +08:00
parent 6eee55860f
commit a06d4f4199
5 changed files with 126 additions and 12 deletions
+2
View File
@@ -101,6 +101,8 @@ printf '%s\n' 'https://alerts.example.test/gochat' >"$ALERTMANAGER_WEBHOOK_URL_F
TEST_MUTABLE_IMAGE=1
export TEST_MUTABLE_IMAGE
expect_failure 'a mutable production image' 'must be pinned to a sha256 digest'
"$root/deploy/docker/preflight.sh" --allow-local-images > "$tmp/output" 2>&1
grep -F 'production preflight passed' "$tmp/output" >/dev/null
unset TEST_MUTABLE_IMAGE
export GOCHAT_DATABASE_DSN='postgres://external_user:external_password@db.example.test:5432/gochat?sslmode=disable'