Loading...
Git push to production

GitHub Deploy

Connect a GitHub or GitLab repository and turn a push into a deploy. We clone the branch, build the images from your Dockerfile or docker-compose.yml on our own infrastructure, and run them on Container Apps: Node, Python, Go, PHP or anything else that runs in a container. Every deploy is a revision you can roll back, and staging lets you check a push before it reaches production.

GitHub Deploy

The problem with SFTP and manual deploys

Copying files over SFTP is how sites end up half-broken: a file gets missed, dependencies are not installed, and there is no record of what shipped. With Git deploy a release is built from a commit. The same Dockerfile produces the same image whoever pushes, and the panel shows which build is running.

Your Dockerfile is the build

There is no separate list of build steps to keep in sync with the code. Whatever your Dockerfile does, such as composer install, npm run build or compiling a Go binary, runs on every deploy against the exact commit being shipped. Multi-stage builds, target and build args are honored, and you do not need a registry account: we build and store the image. Secrets are never passed to a build, because build arguments end up inside the image.

Manual deploys and auto-deploy

A cautious team deploys by clicking Build & deploy after review, or Rebuild for the current commit. A fast-moving team keeps the repository connected so every push to the branch ships. Both run the same build; the only difference is what starts it.

Private repositories and tokens

The GitHub App is the recommended connection: you choose which repositories it can see, there is no token to create or rotate, and you can revoke it on GitHub at any time. For GitLab, or if you prefer a token, a pasted token is used only to clone the repository and is never shown back. Push webhooks are verified, by GitHub's signature or GitLab's secret token, so a random request cannot start a deploy.

Staging before production

A connected repository can deploy to a staging copy first. Pushes land on the test address, you check them there, and Promote moves that version to production. If a release still goes wrong, roll back to an earlier revision from the panel.

Repeatable delivery for teams and agencies

When every project deploys the same way, handover stops being tribal knowledge. The connected repository and branch, recent builds and their logs are in the panel, so anyone can see whether the latest push made it to production. For agencies it means one delivery model across client projects, with nothing bespoke for the next developer to reverse-engineer.

How to deploy, step by step

1

Connect the repository

In the panel open Container Apps and choose Deploy from Git. Click Connect GitHub to install the GitHub App and pick a repository from the list, or paste the repository URL with an access token: a fine-grained GitHub token with Contents: Read-only, or a GitLab token with the read_repository scope.

2

Pick the branch and the compose file

Choose the branch to deploy and, if your docker-compose.yml is not at the root, its path. A repository with only a Dockerfile deploys as a single app on the port of its EXPOSE line, or 8080 if it has none.

3

Build and deploy

Click Build & deploy. We clone that commit, build each image in a sandboxed builder, store it in our private registry and start the apps, wired to each other by service name. The build log is in the panel while it runs, and web-facing apps get an HTTPS address when it finishes.

4

Keep it connected

Tick Keep connected and every push to that branch builds and deploys again. With the GitHub App, a push whose webhook was missed is picked up within five minutes.

5

Stage, promote, roll back

Turn on staging and pushes go to a test copy on its own address; production changes only when you click Promote. Every deploy is kept as a revision, so going back to the previous one is a single action.

How to set it up

Step-by-step guides in the help centre:

Example scenarios

Laravel with a Dockerfile

A Laravel app uses the Dockerfile cdnctl init writes. A push to main builds the image with composer install, and the new revision goes live on Container Apps.

Private client repo

An agency installs the GitHub App on one client repository only, so the code stays private and no token has to be handed over.

Staging first

A team keeps the repository connected with staging on: every push lands on the test address, and production changes only when someone clicks Promote.

Frequently asked questions

What does the repository need?

A Dockerfile, or a docker-compose.yml whose services either build from a Dockerfile or use a public image. Services with a build section are built on our infrastructure; databases and caches are attached as managed add-ons or run as apps. Nothing else is required: no registry account and no CI configuration.

What exactly happens on a push?

With Keep connected on, the push webhook is verified, we clone that commit, build the images and deploy them as a new revision: to staging if it is enabled, otherwise to production. Progress and the build log are shown in the panel.

How is my access token protected?

With the GitHub App there is no token at all: access comes from the app installation and is limited to the repositories you chose. A pasted GitHub or GitLab token is used only to clone the repository and is never shown back. Give it read-only access and revoke it whenever you like.

Can I roll back if a deploy goes wrong?

Yes. Every deploy is kept as a revision, and rolling back to an earlier one is a single action in the panel. With staging on, a broken push does not reach production unless you promote it.

Which branch goes live?

The branch you connect. Pushes to other branches do not deploy, so work in progress stays out of production until it is merged.

Does it work with GitLab, or only GitHub?

Both. GitHub has the smoothest path, because the GitHub App lists your repositories and delivers push events for you. For GitLab, connect the repository URL with a read_repository token, then add the webhook URL and secret the panel shows after the first deploy; GitLab sends the secret as its secret token.

Can I deploy a PHP or Laravel app this way?

Yes, PHP runs on Container Apps like any other stack. Run cdnctl init to generate a Dockerfile; for Laravel it serves public/ only and installs the MySQL PDO driver. Set APP_KEY and the database settings as environment variables. Migrations do not run during the build, so run them from your app's start command or release step. The managed PHP hosting plan does not deploy from Git; it takes code through the file manager or cdnctl.