Build and deploy on your own server, with Actions as an optional integration.
What it does well
Builds, tests and PR review integrated with the repository.
Environments with protection rules and a broad ecosystem of actions.
Same goal, two paths
See how to do each task with both tools. The examples assume the setup described in each case; adapt names, credentials and infrastructure.
01 / USE CASE
Ship a new version
The shop app is already registered in both tools, with source access and the server configured. On the Runner side, commands run on a Linux server with Docker and Traefik already set up.
With GitHub Actions
Use a deploy workflow already committed to the default branch, with workflow_dispatch and a job that ships the chosen version. The deploy script, credentials and artifact transfer must already be configured.
In Actions, open the workflow, select Run workflow, pick the branch/ref the flow expects and run it. Complete the environment approvals and check the logs.
Publish the new version to the configured source. In the Git + Dockerfile path, the Runner fetches the code and builds on the server, without pushing the app image to a registry.
With polling configured, the pipeline runs automatically. To trigger it now, run the commands below on the server and check the status and history.
Examplebash · example
runner preflight shop
runner deploy shop
runner status shop
runner logs history shop
The Runner works on one server at a time. Host-published ports and shared writable volumes may require a downtime window. The Runner can fetch the code and build on the server; using Actions to produce the image is optional. Keep the tests and approvals your team requires.
02 / USE CASE
Roll back a version
The shop app is already registered in both tools, with source access and the server configured. On the Runner side, commands run on a Linux server with Docker and Traefik already set up. The previous workflow is still available and its deploy identifies the artifact by version or digest.
With GitHub Actions
In Actions, find the run for the previous version and use Re-run all jobs, within the 30-day window. The new run uses the original SHA and ref.
The job must deploy that SHA or a matching immutable image. Keep or regenerate the required artifacts; a latest tag does not bring back the old version. Check the logs and the application.
List the retained versions and confirm the previous one still has its code and image available.
Roll back to the previous version and check the application. To pick a different retained version, use --version with the listed identifier.
Examplebash · example
runner versions shop
runner rollback shop
runner status shop
runner logs history shop
A rollback changes code/image; it does not undo migrations, databases or persistent files. Check that the current configuration is compatible with the previous version.
03 / USE CASE
Change configuration
The shop app is already registered in both tools, with source access and the server configured. On the Runner side, commands run on a Linux server with Docker and Traefik already set up.
With GitHub Actions
In the workflow, set LOG_LEVEL: info under env in the deploy job and commit the change.
Run the workflow. The job's script must pass this variable to the container's environment and recreate it; setting env only on the job does not change the remote application.
In this example, shop already uses env_sync: skip in the reviewed manifest, which preserves the local environment; LOG_LEVEL is not pinned under environment in the manifest.
Write the non-secret variable on the server and force the container to be recreated. Check the log level in the application's behavior.
Examplebash · example
runner env set shop LOG_LEVEL info
runner deploy shop --force
runner status shop
The application must read LOG_LEVEL at runtime. Pipeline variables only reach the container if the deploy process passes them along.
Documented reports and historical context
Deploying over SSH hands CI a credential that gets into the server.
On the server, cron polls the source and runs the deploy. This path removes the need for an inbound SSH key from CI; credentials to read the repository are still required.
The tj-actions/changed-files compromise in March 2025 showed the risk of pipeline dependencies.
The runner deploy path does not depend on pipeline plugins. This is not a sandbox: Dockerfiles and app code still run; review them and protect your CI credentials. Keep the runner binary updated too.
With Compose, a zero-downtime deploy means building the container and traffic swap yourself.
The new container passes the healthcheck before the switch in Traefik. Published ports and shared writable volumes may require a window; test the cutover with your app.
When to stay with the tool
Keep Actions when your tests, PR review and approval rules are part of the process. Runner can build locally or consume an already approved artifact.
How to evaluate the deploy step
The commands use shop as the example app. Adjust the identifier and instance to the generated manifest. Only remove the previous deploy after validating the new path.
Choose the path: code and Dockerfile for Runner to build on the server, or an image/artifact produced by Actions. Keep the tests and approvals your team requires; pushing an image to a registry is only needed if you choose that flow.
Prepare a Linux server with compatible Docker and Traefik, DNS and a persistence strategy. Back up your data with your backup tool and test the restore. Install and initialize the runner following the start guide.
In the app folder with a Dockerfile or image, generate and review the manifest. Check network, healthcheck, secrets and version. The wizard does not deploy on its own.
Example for a GitHub repository: commit the reviewed manifest to the main branch before registering. Replace my-org/shop with your repo, main with the published branch and production with the reviewed instance; set up read access to the private repo first. On the server, register, review the preflight and only then deploy.
Example with runnerbash · example
runner add --repo my-org/shop --branch main --instance production --ckey v2
runner preflight shop
runner deploy shop
runner status shop
runner logs history shop
Validate the domain and the app's behavior before turning off the previous deploy. Disable the old trigger to avoid two deployers on the same app. Set up polling to automate the pipeline on the server. If you prefer an external build, configure the source of the image or artifact produced by CI. The start guide covers the prerequisites.