Skip to content

Render deploy#1181

Open
ojusave wants to merge 6 commits into
nextlevelbuilder:devfrom
ojusave:render-deploy
Open

Render deploy#1181
ojusave wants to merge 6 commits into
nextlevelbuilder:devfrom
ojusave:render-deploy

Conversation

@ojusave
Copy link
Copy Markdown

@ojusave ojusave commented May 30, 2026

Add a Render Blueprint (render.yaml) and README deploy instructions so GoClaw can be deployed on Render with one click: official GHCR image, Postgres 18, persistent disk, and auto-generated gateway/encryption secrets.

Summary

Adds render.yaml for one-click Render deployment using the official ghcr.io/nextlevelbuilder/goclaw image, plus a short README section and badge-row link. The Blueprint wires Postgres 18, a 10GB persistent disk for agent workspaces, GOCLAW_PORT=10000 (GoClaw does not use Render's PORT), and generateValue for GOCLAW_GATEWAY_TOKEN and GOCLAW_ENCRYPTION_KEY. LLM provider keys are intentionally omitted from the Blueprint so Apply does not prompt for empty API keys.

Type

  • Feature
  • Bug fix
  • Hotfix (targeting main)
  • Refactor
  • Docs
  • CI/CD

Target Branch

dev

Checklist

  • go build ./... passes — N/A, no Go changes
  • go build -tags sqliteonly ./... passes (if Go changes) — N/A
  • go vet ./... passes — N/A
  • Tests pass: go test -race ./... — N/A
  • Web UI builds: cd ui/web && pnpm build (if UI changes) — N/A
  • No hardcoded secrets or credentials
  • SQL queries use parameterized $1, $2 (no string concat) — N/A
  • New user-facing strings added to all 3 locales (en/vi/zh) — N/A
  • Migration version bumped in internal/upgrade/version.go (if new migration) — N/A

Test Plan

  • Applied Blueprint from repo root; web service and Postgres 18 database provision successfully.
  • Verified startup without dockerCommand shell wrapper (earlier dockerCommand caused exit 127); service binds on GOCLAW_PORT=10000 and passes /health.
  • Confirmed migrations run on boot and create required extensions (no initialDeployHook / psql needed).
  • Live deploy: https://goclaw-h5su.onrender.com — dashboard loads, gateway token auth works after copying GOCLAW_GATEWAY_TOKEN from Dashboard.
  • Deploy button/badge links to https://render.com/deploy?repo=https://github.com/ojusave/goclaw&branch=dev.
  • Post-deploy: add LLM provider API key in Settings (not required at Blueprint Apply time).

ojusave added 6 commits May 29, 2026 17:07
Render parsed the shell one-liner as a single binary path (exit 127).
Use GOCLAW_PORT=10000 instead. Remove initialDeployHook; migrations
create pgvector/pgcrypto and the image has no psql client.
Pin image to v3.12.0, set GOCLAW_PORT=10000 explicitly, remove
dockerCommand and initialDeployHook (both caused deploy failures),
drop optional provider keys from Apply UI, add shutdown delay and
document port contract in comments.
Move deploy link to a flat badge beside Docker; replace hero button
and long deploy section with a short pointer to render.yaml.
Replace custom shields.io badge with render.com/images/deploy-to-render-button.svg
sized inline after Docker.
Replace the full Deploy to Render SVG with a flat-square shields badge so it matches Go, Docker, and the other row badges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant