Skip to content

feat: add GHCR build workflow and custom schema support - #2

Merged
JOY (JOY) merged 3 commits into
mainfrom
dev
Aug 22, 2026
Merged

feat: add GHCR build workflow and custom schema support#2
JOY (JOY) merged 3 commits into
mainfrom
dev

Conversation

@JOY

@JOY JOY (JOY) commented Aug 22, 2026

Copy link
Copy Markdown

Summary

  • GitHub Actions Build Workflow: Thêm .github/workflows/deploy-docker.yml để tự động build và push ghcr.io/dos/crove-cal:latest lên GitHub Container Registry.
  • Custom Schema Routing: Cấu hình PrismaPg adapter tự động lấy schema=cal từ DATABASE_URL để query đúng schema cal trên Supabase Postgres.
  • Prisma Migrations Fix: Loại bỏ prefix public. khỏi các file migration để chạy trơn tru trên custom schema.

Note

Medium Risk
Rewrites already-applied Prisma migration SQL and changes how every Prisma client selects a schema, which can break migrate/deploy on existing databases. GHCR publish is lower risk but still production-facing.

Overview
Enables deploying this Cal.com fork against a non-public Postgres schema (e.g. Supabase schema=cal) and publishing images to GHCR.

Prisma clients now parse schema from the DB URL and pass it into PrismaPg (webapp packages/prisma plus API v2 read/write services). Historical migrations drop hardcoded public. prefixes so objects are created in the search-path schema. Container startup skips wait-for-it when DATABASE_HOST is unset.

A new workflow builds and pushes :latest and :sha images to ghcr.io on dev/main (and manual dispatch), with placeholder Next public URLs baked in at build time.

Reviewed by Cursor Bugbot for commit 583c417. Bugbot is set up for automated code reviews on this repo. Configure here.

JOY (JOY) and others added 3 commits August 22, 2026 11:09
… support custom schema

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…to GHCR

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

Welcome to Cal.diy, JOY (@JOY)! Thanks for opening this pull request.

A few things to keep in mind:

  • This is Cal.diy, not Cal.com. Cal.diy is a community-driven, fully open-source fork of Cal.com licensed under MIT. Your changes here will be part of Cal.diy — they will not be deployed to the Cal.com production app.
  • Please review our Contributing Guidelines if you haven't already.
  • Make sure your PR title follows the Conventional Commits format.

A maintainer will review your PR soon. Thanks for contributing!

@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_d1b110c0-b7a2-4dc9-b604-2b4a29871ce7)

@JOY
JOY (JOY) merged commit 11a16e7 into main Aug 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant