Deployments

A deployment is a single build-and-deploy cycle that takes your code from a Git commit (or a Docker image, or a static bundle) to a running application serving traffic. Each deployment is immutable — once created, it represents a specific version of your application at a specific point in time.


What is a deployment

A deployment record tracks:

  • The source — which commit, branch, image, or bundle was deployed
  • The environment — which environment (production, staging, preview) received the deployment
  • The status — whether the deployment succeeded, failed, or is still running
  • The timeline — when each stage started and finished
  • The logs — full build and deploy output for every job in the pipeline
  • The container — the Docker image and running container(s) created by this deployment

Deployments are immutable. You cannot modify a completed deployment. To change what is running, you create a new deployment (by pushing code, triggering a pipeline, or rolling back).


The deployment pipeline

When a deployment is triggered, it flows through a series of jobs:

Loading diagram...

1. Clone repository

Temps clones your Git repository at the specified commit. For monorepos, only the configured app directory is relevant to the build.

2. Build image

Temps detects your framework and builds a Docker image. The build method depends on your project:

  • Nixpacks (default for most frameworks) — Automatically detects language, dependencies, build command, and start command. No Dockerfile needed.
  • Dockerfile — If a Dockerfile exists in the repo root (or app directory), Temps uses it directly.
  • Static preset — For static sites, Temps builds the files and serves them with a lightweight web server.

3. Deploy container

The built image is started as a Docker container with:

  • The environment's resource limits (CPU, memory)
  • All environment variables (user-defined + auto-injected + service credentials)
  • Network connectivity to linked managed services
  • The configured replica count

4. Health check

Temps sends HTTP requests to the container to verify it started successfully. The container must respond with a 2xx status code. Health checks retry with exponential backoff to handle slow startup times.

5. Route traffic

Once the health check passes, the reverse proxy (Pingora) is updated to route incoming requests to the new container. The old container continues serving requests until the switch is complete.

6. Mark complete

The deployment status changes to completed. Post-deploy tasks run in the background:

  • Screenshot capture (for the deployment preview in the dashboard)
  • Vulnerability scanning
  • Source map upload (for error tracking stack traces)
  • Cron job configuration

Deployment states

StateMeaning
pendingDeployment is queued, waiting for a worker
runningBuild or deploy step is actively executing
deployingContainer is starting and waiting for health checks
readyContainer is healthy and receiving traffic
completed / deployedFully deployed and serving traffic
failedA job in the pipeline failed. Check logs for details.
cancelledManually cancelled by a user before completion
pausedTemporarily paused (can be resumed)
stoppedContainer was stopped after being deployed

A deployment can only be cancelled while in pending or running state. Once a deployment reaches completed, it stays in that state until a new deployment replaces it.


Jobs and stages

Each deployment is composed of jobs — discrete units of work that execute in a defined order with dependency tracking.

Job typeWhat it does
DownloadRepoJobClones the Git repository at the target commit
BuildImageJobBuilds the Docker image using Nixpacks or Dockerfile
DeployImageJobStarts the container, runs health checks, routes traffic
DeployStaticJobDeploys pre-built static files
DeployStaticBundleJobDeploys an uploaded static bundle
PullExternalImageJobPulls a Docker image from a registry
VerifyLocalImageJobVerifies a Docker image exists locally (for rollbacks)
MarkDeploymentCompleteJobFinal status update and cleanup
ConfigureCronsJobSets up scheduled tasks
TakeScreenshotJobCaptures a visual preview of the deployed site
ScanVulnerabilitiesJobRuns security scanning on the container
CaptureSourceMapsJobUploads source maps for error tracking

Each job has:

  • A status (Pending, Running, Success, Failure, Cancelled)
  • An execution order and dependencies (jobs that must complete first)
  • A log stream with timestamped output
  • An error message if it failed

If a job fails, all dependent jobs are automatically cancelled.


Build detection

Temps auto-detects your framework based on files in the repository:

Detection signalFrameworkBuild behavior
next.config.js or next.config.tsNext.jsNixpacks with Next.js preset
vite.config.tsVite (React, Vue, Svelte)Nixpacks, output served as static
DockerfileDockerDirect Docker build
package.json with start scriptNode.jsNixpacks with Node.js preset
requirements.txt or pyproject.tomlPythonNixpacks with Python preset
go.modGoNixpacks with Go preset
Cargo.tomlRustNixpacks with Rust preset
index.html (no framework files)StaticServed directly

You can override the auto-detected preset in project settings if the detection is wrong.


Zero-downtime deploys

Temps uses a blue-green deployment strategy:

  1. The new container starts alongside the existing one
  2. Health checks verify the new container is ready
  3. The reverse proxy switches traffic to the new container
  4. The old container is stopped and removed

During the transition, both containers are running. Requests in flight to the old container complete normally. New requests go to the new container. There is no downtime visible to users.

If the new container fails its health check, the old container continues serving traffic and the deployment is marked as failed.


Deployment types

TypeTriggered byBuild step
Git pushWebhook from GitHub/GitLab when you push to a tracked branchFull build from source
Manual triggerDashboard "Redeploy" button or trigger-pipeline APIFull build from source
Docker imagedeploy/image API endpointNo build — pulls and deploys the image
Image uploaddeploy/image-upload API endpointNo build — loads the uploaded tarball
Static bundledeploy/static API endpointNo build — serves the uploaded files
RollbackDashboard rollback action or rollback API endpointNo build — reuses the Docker image from a previous deployment

Rollbacks are the fastest because they skip both the clone and build steps. They reuse the existing Docker image from a previous deployment, so they complete in seconds rather than minutes.

Was this page helpful?