Loading...
Loading...
Deploy a Docker image to a Rivet Cloud cluster through the Rivet MCP server, or roll a cluster back to an earlier build. Use when asked to deploy, ship, release, or roll back an app on a Rivet cluster and a shell with Docker is available.
npx skill4agent add rivet-dev/skills rivet-deploy-imageexecutesearchrivet.deploy.preparereturn (await rivet.cloud.v2.clusters.list()).items;executeclusterrivet.context()clusterlinux/amd64docker build --platform linux/amd64 -t app .
docker image save app -o image.tar
wc -c < image.tar # content_length
openssl md5 -binary image.tar | base64 # content_md5return await rivet.deploy.prepare({
cluster: "my-cluster",
image: "app:latest",
content_length: 48213504,
content_md5: "1B2M2Y8AsgTpgAmY7PhCfg==",
});content_lengthfileimage.tarbuild_iduploadexpires_atdonetruereturn await rivet.deploy.rollout({ cluster: "my-cluster", build_id: "<build_id>" });donefalsereferences/rollout.mdbuild_idendpointsbuild_idrivet.deploy.rolloutbuild_idrivet.deploy.*rivet.cloud.v2.builds.*rivet.cloud.v2.runnerPools.upsertclusterregionpool