Commit graph

10 commits

Author SHA1 Message Date
b95994cc3c fix: make test suite runnable without DB/Chrome, add tests to CI
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 12m28s
- Refactor index.ts to skip start() when NODE_ENV=test
- Add test setup with mocks for db, keys, browser, verification, email, usage
- Add vitest.config.ts with setup file
- Rewrite tests to work with mocks (42 tests, all passing)
- Add new tests: signup 410, recovery validation, CORS headers, error format, API root
- Add test step to CI pipeline before Docker build
2026-02-25 07:07:12 +00:00
DocFast Bot
e074562f73 fix: use commit SHA instead of latest tag to prevent race condition in promote workflow
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
The promote workflow previously pulled :latest, which could be stale if the
staging build hadn't finished yet. Now it pulls the exact :SHA image that
deploy.yml produces, with retry logic (up to 10min) if staging is still building.
2026-02-20 16:01:03 +00:00
OpenClaw Deployer
c6af7cd864 fix: disable buildx cache + simplify compression middleware
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 11m9s
Promote to Production / Deploy to Production (push) Successful in 2m15s
2026-02-19 08:09:59 +00:00
OpenClaw Deployer
02b2408772 ci: staged deployment — push to main→staging, git tag→prod
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
- Push to main builds ARM64 image and deploys to docfast-staging namespace
- Push a version tag (v*) promotes latest image to docfast namespace (prod)
- Both use same deployer SA with namespace-scoped RBAC
2026-02-18 12:40:00 +00:00
OpenClaw Deployer
681745f08f ci: use REGISTRY_TOKEN for container registry push
All checks were successful
Build & Deploy to K3s / Build & Deploy (push) Successful in 7m24s
2026-02-18 12:10:12 +00:00
OpenClaw Deployer
b568b14a42 ci: add packages:write permission for registry push
Some checks failed
Build & Deploy to K3s / Build & Deploy (push) Failing after 9m53s
2026-02-18 11:55:42 +00:00
OpenClaw Deployer
7a49541128 ci: switch to K3s deploy via Forgejo registry + kubectl
Some checks failed
Build & Deploy to K3s / Build & Deploy (push) Failing after 9m30s
- Build ARM64 image via QEMU/buildx on x86 runner
- Push to Forgejo container registry (uses built-in GITHUB_TOKEN)
- Deploy via kubectl with scoped deployer SA (docfast namespace only)
- No SSH, no secrets on infra, no Docker on k3s-mgr
2026-02-18 11:41:19 +00:00
DocFast Bot
60efc5e206 ci: inject secrets from Forgejo CI into .env during deploy
Some checks failed
Deploy to Production / Deploy to Server (push) Failing after 21s
2026-02-17 12:08:47 +00:00
DocFast Bot
73fba68320 ops: add post-deploy verification script and add to CI/CD workflow
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 1m35s
- scripts/verify-deploy.sh: checks container health, /health endpoint, and Stripe checkout
- .forgejo/workflows/deploy.yml: runs verify-deploy.sh after successful deploy
2026-02-17 11:51:36 +00:00
openclawd
7d3525fe57 Add CI/CD deployment pipeline with Forgejo Actions
- Add .forgejo/workflows/deploy.yml for automated deployment
- Include rollback mechanism with image tagging
- Add health check verification (http://127.0.0.1:3100/health)
- Create manual rollback script for emergency use
- Add deployment documentation and setup instructions
- Supports auto-rollback on deployment failure
2026-02-15 11:02:43 +00:00