Repository navigation
feat(build): fetch railpack versions dynamically from GitHub releases - #102
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the hardcoded
RAILPACK_VERSIONSarray with a live tRPC query that fetches railpack releases from the GitHub API, cached 24h server-side. The "Latest" badge becomes dynamic, a leadingvis stripped from manually entered versions, and asuperRefinerequires a railpack version when the railpack build type is selected.apps/dokploy/server/api/routers/application.ts: newgetRailpackVersionsprotected 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: restructuresapiSaveBuildType(movespublishDirectory/isStaticSpainto the.pick()and adds the railpack-versionsuperRefine).Ports Dokploy#4070 by @s24407-pj (squashed apply of the 8-commit branch; author preserved via
--author).Migration / landmine check
None — and no
applicationscolumn is added. This item was flagged as a possibleapplications-table column addition (the Postgres 100-argument ceiling risk). Verified: the onlyschema/application.tschange is to theapiSaveBuildTypeZod schema (a.pick()+superRefinerestructure); there is nopgTablecolumn, no.default(), and no relational query introduced. Assigned slot 0189 is unused (no schema change).Verification
pnpm --filter=dokploy run typecheckpasses on this branch.