Skip to content

feat(build): fetch railpack versions dynamically from GitHub releases - #102

Merged
AminDhouib merged 2 commits into
canaryfrom
port/upr-4070
Jul 15, 2026
Merged

AminDhouib merged 2 commits into
canaryfrom
port/upr-4070

Conversation

@AminDhouib

Copy link
Copy Markdown
Member

Summary

Replaces the hardcoded RAILPACK_VERSIONS array with a live tRPC query that fetches railpack releases from the GitHub API, cached 24h server-side. The "Latest" badge becomes dynamic, a leading v is stripped from manually entered versions, and a superRefine requires a railpack version when the railpack build type is selected.

  • apps/dokploy/server/api/routers/application.ts: new getRailpackVersions protected query with a module-level 24h cache.
  • apps/dokploy/components/dashboard/application/build/show.tsx: dynamic version list, loading/error states, v-prefix normalization, submit disabled while versions load.
  • packages/server/src/db/schema/application.ts: restructures apiSaveBuildType (moves publishDirectory/isStaticSpa into the .pick() and adds the railpack-version superRefine).

Ports Dokploy#4070 by @s24407-pj (squashed apply of the 8-commit branch; author preserved via --author).

Migration / landmine check

None — and no applications column is added. This item was flagged as a possible applications-table column addition (the Postgres 100-argument ceiling risk). Verified: the only schema/application.ts change is to the apiSaveBuildType Zod schema (a .pick() + superRefine restructure); there is no pgTable column, no .default(), and no relational query introduced. Assigned slot 0189 is unused (no schema change).

Verification

  • pnpm --filter=dokploy run typecheck passes on this branch.

s24407-pj and others added 2 commits July 12, 2026 16:00
Replaces the hardcoded RAILPACK_VERSIONS array with a tRPC query that
fetches railpack releases from the GitHub API (24h server-side cache),
makes the "Latest" badge dynamic, strips a leading "v" from manually
entered versions, and adds a superRefine requiring a railpack version
when the railpack build type is selected.

Squashed from the upstream PR branch; no database schema change (the
schema/application.ts edit only restructures the apiSaveBuildType Zod
validation).

Ports Dokploy#4070 by @s24407-pj.
@AminDhouib
AminDhouib merged commit dc56568 into canary Jul 15, 2026
3 checks passed
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.

2 participants