Automate your deployments by integrating Magic Containers with GitHub Actions. When you push changes to your repository, your workflow can build a Docker image, push it to a container registry, and trigger a rolling update on Magic Containers.
Prerequisites
- An application already deployed on the Magic Containers platform
- A GitHub repository containing a Dockerfile or valid build context
- Container registry credentials (
GITHUB_TOKEN for GitHub Container Registry, your bunny.net API key for the Bunny Container Registry, or a personal access token for DockerHub)
Quickstart
Add a step to your GitHub Actions workflow with the following inputs: app_id, api_key, container, and image_tag. This triggers a rolling update whenever a new image is built and pushed.
Push with the bunny.net CLI: it authenticates the push and namespaces the image under your account, so the workflow needs no registry login step and no account ID variable. The same API key secret authenticates both the registry push and the Magic Containers update.
Last modified on August 27, 2026