Auto-deploy: roll out new images automatically
Updated: 18 November 2026
A service can follow the tag of its image, e.g. ghcr.io/acme/web:main, or a version pattern such as 1.x (see Follow versions). When your CI pushes a new image under that tag, the platform rolls it out by itself, exactly like an apply_deployment: with a health check, a rolling update and an automatic rollback if the new image does not become healthy. Your agent does not need to be running.
Turn it on
In the contract, the source gets auto_deploy:
{
"api_version": "v1alpha1",
"services": [{
"name": "web",
"source": {
"type": "image",
"image": "ghcr.io/acme/web:main",
"auto_deploy": { "track": "tag" }
},
"port": 3000,
"public": true
}]
}track: "tag"follows the tag inimage. The image therefore needs a tag, not a digest (@sha256:…givesVALIDATION_FAILED).track: "1.x"or"1.4.x"follows the highest matching version instead (Follow versions).approval: "none"(default): a new image is rolled out at once. Withapproval: "owner"every new image waits for your approval (Approval per image).- Only for
source.type: "image". Uploaded code (upload) has no auto-deploy; there the agent deploys after each new upload. - Private images:
pull_secretas usual (private registry). The platform uses the newest version of the secret for every check, so a rotated token applies at once.
The plan reports AUTO_DEPLOY_ON (info) and warns with AUTO_DEPLOY_MUTABLE_TAG when the tag is latest or missing (any image under that tag then goes live), and with AUTO_DEPLOY_WITH_VOLUME when the service has a volume (a new version may migrate data; a rollback does not restore the data).
Follow versions
Instead of a fixed tag, the service can follow a series of versions. This fits when your CI tags releases as 1.4.2, 1.4.3, 1.5.0:
"source": {
"type": "image",
"image": "ghcr.io/acme/web:1.4.2",
"auto_deploy": { "track": "1.x" }
}1.xfollows all versions1.y.z,1.4.xonly1.4.z(patches only). For tags with av(v1.4.2) writev1.xorv1.4.x.- The tag in
imageis the start version and must match the pattern; otherwise the plan answersVALIDATION_FAILED. - Only full versions
MAJOR.MINOR.PATCHcount. Pre-releases (1.5.0-rc1), variants (1.4.2-alpine) and moving tags (1.4,latest) are skipped. - The platform reads the repository's tag list for this (at most 1000 tags, otherwise
AUTO_DEPLOY_TOO_MANY_TAGS) and rolls out the highest matching tag. It never moves down to a lower version by itself, even when a tag is deleted; going back only works withrollback_deployment. - A new
apply_deploymentwith the same image and pattern keeps the version rolled out last; only another image or pattern starts at the new start version. get_projectshows the running version asauto_deploy.current_tag,triggeringet_deploymentthe versions before and after (tag_from,tag_to).
For production a version pattern is safer than a branch tag: only what CI explicitly tags as a release goes live.
Approval per image
With "approval": "owner" the platform rolls out no new image without a human:
"auto_deploy": { "track": "1.x", "approval": "owner" }- When the platform notices a new image that passes all checks, it creates an approval and e-mails all owners and admins a link.
get_projectreportsAUTO_DEPLOY_APPROVAL_PENDINGwith the approval ID. - An owner or admin (or a maintainer of the project) approves or rejects it in the portal under Approvals with a passkey. An agent cannot decide it.
- The approval is valid for 24 hours, not just 15 minutes like other approvals: nobody waits for a push at 3 a.m. If it expires, the next check asks again (without a second e-mail).
- Approved, the platform rolls out exactly this image at the next check, with all the usual checks. Rejected, it is not asked for again (
AUTO_DEPLOY_DIGEST_REJECTED); only the next push asks anew. - There is never more than one open approval per service: a newer image replaces the open one.
How the platform notices new images
The platform asks the registry for the tag's current digest (for a version pattern first for the tag list) and compares it with the running image:
| Way | How fast |
|---|---|
| Regular check | every 10 minutes (±10 %) |
Docker Hub without pull_secret | every hour, because Docker Hub heavily limits anonymous requests |
| Deploy hook | about 1 minute after the call; the regular check then only runs hourly as a safety net |
Before it is rolled out, a new image goes through the same checks as at planning: without linux/amd64 or with more than 2 GB of compressed layers it is not rolled out, and you get an e-mail.
Deploy hook
The deploy hook is a secret URL per project. A POST to it tells the platform: "Look now." It then asks the registry itself; nothing in the call is trusted. Your agent creates the URL with create_deploy_hook, or you do it in the portal under the project (card Deploy hook). The URL is shown only once; a new one replaces the old one at once.
GitHub Actions, after the push step:
- name: Helfinity deploy hook
run: curl -fsS -X POST "$HELFINITY_DEPLOY_HOOK"
env:
HELFINITY_DEPLOY_HOOK: ${{ secrets.HELFINITY_DEPLOY_HOOK }}GitLab CI: create the URL as a masked variable HELFINITY_DEPLOY_HOOK and call curl -fsS -X POST "$HELFINITY_DEPLOY_HOOK" after docker push.
Registry webhooks: Docker Hub (repository → Webhooks), Harbor (project → Webhooks, event Artifact pushed), Quay (notification Push to Repository) or GitHub (repository webhook, event Packages): enter the URL as the target. If the webhook names the repository (Docker Hub, Harbor, Quay), the platform only checks the services whose image matches. With ?repository=acme/web on the URL you can do the same by hand.
Responses: 202 (accepted), 404 (unknown URL), 429 (more than 60 calls per hour and project). Several calls in quick succession result in one check.
What a new image does not do
- It does not start a stopped service. If the service is stopped (in the portal, by the agent, after a crash loop or by the security check) or the project is halted by the emergency stop, budget or credit, the new image waits (
AUTO_DEPLOY_WAITING) and is rolled out as soon as everything runs again. - A failed image is not retried. If the rollout fails or the platform rolls back automatically, it remembers the digest (
AUTO_DEPLOY_DIGEST_REJECTED). Only the next push under the tag is rolled out again. You get an e-mail with the cause. - A rollback pauses auto-deploy. After
rollback_deploymentthe next check would otherwise roll out the rolled-back image again. Auto-deploy therefore pauses (AUTO_DEPLOY_PAUSED) until the agent deploys the service again (apply_deployment) or you choose Resume in the portal. - At most 6 automatic deployments per service and hour, and together with all others at most 30 per project (
AUTO_DEPLOY_THROTTLED). Anything beyond that is caught up later.
See the status and pause
- Agent:
get_projectshowsauto_deployper service withstate(active,paused,waiting,failing), the waiting image and the reason;get_deploymentandlist_deploymentsshowtriggerfor automatic deployments (tag, old and new digest, for version patternstag_from/tag_to,hook,pollorapproval). The actor issystem/auto-deploy. - Portal: on the project page every service with auto-deploy carries a badge with its state. Owners and admins can pause and resume there. A pause set in the portal is lifted only by a person in the portal or by a new
apply_deploymentfor the service. - E-mail: never on every successful rollout, only when a new image waits for your approval (
approval: "owner"), when it fails or is rejected, and when the registry does not answer or rejects the credentials for a day (AUTO_DEPLOY_FAILING).
All values are under Limits: auto-deploy.