Documentation menu

Core Concepts

Builds & Artifacts

How Parslinks builds your code with Railpack or a Dockerfile, every build setting, caching, build secrets, and where artifacts are stored.

A build turns a commit into something that can run. A successful build produces an ArtifactSet, the immutable input of a deployment. Image services skip the build and pull an image instead.

Builders

Parslinks has two ways to build a Git service:

BuilderWhen it is usedWhat it does
Railpack (default)No Dockerfile, or "Use Dockerfile" offDetects the language and framework, installs dependencies and produces an OCI image with BuildKit.
Dockerfile"Use Dockerfile" on, or a Dockerfile path is setBuilds your Dockerfile as written.

Framework detection fills in sensible commands for common stacks (Node.js frameworks such as Next.js, Python, Go and others). You can keep auto-detection on and override only what you need.

Build settings

Build settings belong to the service and apply to all its environments.

SettingPurpose
Root directorySubfolder to build from. Use it for monorepos (for example apps/web).
Include files outside rootLet the build see shared packages outside the root directory.
Install commandOverrides dependency installation (for example pnpm install --frozen-lockfile).
Build commandOverrides the build step (for example pnpm build).
Start commandThe process your container runs (for example node server.js).
Output directoryFor static sites: the folder to serve.
Use Dockerfile / Dockerfile pathBuild with your own Dockerfile instead of Railpack.
Skip if unchangedSkip the build when nothing relevant changed since the last successful one.
Ignored build stepAutomatic, or a custom command whose exit code decides whether to build.
Concurrent buildsall, per_branch or serial, to control parallel builds of one service.

What a build does

  1. Source acquisition: the repository is cloned at the exact commit with a short-lived token from your Git connection. The token is removed from the workspace right after the clone.
  2. Plan: Parslinks resolves the effective build plan: builder, commands, root, Dockerfile.
  3. Build: BuildKit builds the image. Logs stream live to the dashboard.
  4. Push and register: the image is pushed to the platform registry and the ArtifactSet is registered with its digest and content hash.

A build that fails produces no artifact. The environment keeps serving its current deployment.

Build-time variables and secrets

Variables are available to the build as well as at runtime. Treat build-time secrets carefully: values passed into an image as plain ARG or ENV can end up in image layers. Parslinks classifies secrets and refuses to embed a build secret insecurely; secret values are only passed through BuildKit secret mounts when that mode is enabled.

Caching

Builds reuse a BuildKit cache scoped to your service. The cache key includes the commit, root directory, Dockerfile, build commands, lockfile digest, a fingerprint of build-time variables (hashed, never stored in plain text) and the builder version. Runtime-only variables such as PORT are excluded, so changing them does not bust the cache.

The cache is never shared across workspaces. It is pruned automatically when the builder's disk fills up; that never affects registered artifacts or running deployments.

Artifacts and storage

  • An ArtifactSet is immutable once registered. Its objects are stored by content hash (cas/sha256/…) in S3-compatible object storage, so identical output is stored once.
  • Container images live in the platform's OCI registry; deployments reference them by digest, not by a moving tag.
  • Retention follows deployments: an artifact is kept as long as a retained deployment references it (alias → deployment → artifact). When nothing does, garbage collection reclaims it.

Build isolation

Builds run on platform-managed runners. Your build containers have no access to the Docker socket, the host filesystem or other tenants' workspaces, and run on a dedicated build network. Private repositories without valid credentials fail closed (SOURCE_AUTH_FAILED) instead of falling back to anonymous access.

Limits

Your plan sets builds per day and how many builds can run at once (Starter: 50 per day, 2 concurrent; Pro: 200 per day, 5 concurrent, with priority builds). See Pricing & Plans.

Troubleshooting builds

  • Command not found / wrong runtime version: set the install and build commands explicitly, or pin the version in your project files (engines, .python-version, go.mod).
  • Works locally, fails here: reproduce from a clean clone at the same commit; ignored or untracked files are not part of the build.
  • Monorepo builds the wrong app: set the root directory, and turn on "include files outside root" if the app imports shared packages.
  • More in Troubleshooting.