Build Pipelines

Build, Compile, and Deploy
All in One Step

Define custom build commands to run before, during, and after each deployment. Compile assets, install dependencies, and deploy — automatically.

Last updated on 22nd February 2026

A build pipeline is a series of automated commands that run before your code is deployed. DeployHQ's build pipeline compiles assets, installs dependencies, runs tests, and prepares your project for production — all within isolated Docker containers on our infrastructure.

The Problem with Deploying Raw Source Code

Modern projects require compilation, bundling, and dependency installation before they're ready for production.

RAW SOURCE src/app.tsx styles/main.scss package.json ⚠ Build Step? PRODUCTION ❌ Uncompiled code ❌ Missing assets ❌ No dependencies Deploying raw source code leads to broken production sites

Without a build step, your production server receives raw source code that browsers and servers can't use directly.

Build Pipelines — The Solution

Run build commands in an isolated environment. Only production-ready files reach your server.

SOURCE CODE src/app.tsx styles/main.scss package.json BUILD PIPELINE npm install npm run build composer install ⚡ Isolated Environment PRODUCTION ✓ dist/app.js ✓ dist/style.css ✓ vendor/ ✓ Ready!

How It Works

Define your build commands and we handle the rest — securely and automatically.

1
Text icon

Define Commands

Write the build commands to run before, during, or after deployment.

2
Server icon

Isolated Build

Commands run securely in an isolated Docker environment with your chosen runtimes.

3
Cloud icon

Upload Results

Only the compiled, production-ready files are uploaded to your server.

4
Check icon

Run SSH Commands

Execute post-deploy SSH commands like cache clearing or service restarts.

Why Use Build Pipelines?

Keep compiled files out of your repository and automate your entire build process.

Zap icon

Any Framework

Whether you use Webpack, Vite, Gulp, or any other build tool — define your commands and we'll run them. Supports Node, PHP, Ruby, Python, Go, Java, and .NET.

Shield icon

Secure Isolation

Build commands run in an isolated Docker container. Your code is compiled in a clean, secure environment every time.

Folder icon

Clean Repository

No need to commit compiled files to your repository. Build artifacts are generated fresh on every deployment.

Check icon

SSH Commands

Execute commands on your server before and after deployment. Clear caches, restart services, or run migrations automatically.

Getting Started

Set up build pipelines in minutes

Check mark

Add Build Commands

Define your build commands in the project settings (e.g. npm install, npm run build).

Check mark

Choose Your Runtime

Select the language versions you need — Node, PHP, Ruby, Python, and more.

Check mark

Deploy Automatically

Every deployment now compiles, bundles, and uploads production-ready files.

Read the documentation →
BUILD CONFIGURATION Build Commands: $ npm install $ npm run build Runtime: Node.js 20.x • PHP 8.3 • Ruby 3.3 SSH After Deploy: $ php artisan cache:clear

Frequently Asked Questions

What languages and tools can I use in build pipelines?

DeployHQ's build servers support a wide range of languages and tools including Node.js, Ruby, Python, PHP, Go, and more. You can run any command that your project needs — npm install, composer install, bundle install, webpack, gulp, and similar.

Are build commands run on my server?

No. Build commands run on DeployHQ's dedicated build servers, not on your production server. Only the compiled output is deployed to your server, keeping your production environment clean and secure.

Can I cache dependencies between builds?

Yes. DeployHQ caches your build dependencies between deployments so subsequent builds are faster. Dependencies like node_modules or vendor directories are preserved and only updated when your lock files change.

Ready to automate your builds?

Compile, bundle, and deploy in one seamless workflow.

10-day free trial • No setup fees • Cancel anytime

Get started today for just $9/month

That's unlimited deployments and 3 projects.

Start your free 10 day trial