Git deploy and pipelines

Git deploy and pipelines

Deploy from a Git repository with a deploy key, and run build steps by hand or from a webhook.

Plans: Developer and Agency
On this page

Deploy key and connection test

Create a deploy key for the site and add its public key to your repository (read-only access is enough). The private key stays on your server. Test connection checks that the server can reach the repository with it.

First deploy

The first deploy clones the repository into the site’s folder. It is refused if the folder is not empty, so no file is overwritten.

Pipelines

A pipeline is a list of steps — git pull, a command of your own, npm, Composer, Artisan or pm2 — that runs as the site’s own user, never as root. Run it by hand or from a webhook; the history shows each run and each step’s output. Only one run of a pipeline happens at a time.

Webhooks

Webhook calls must be signed: GitHub and Gitea with X-Hub-Signature-256, GitLab with X-Gitlab-Token. The secret is shown once when you create it; unsigned calls are refused and recorded.

Git deploy and pipelines — Help center — WolfPanel