rivet-deploy-image
Installation
SKILL.md
Deploy an image to a Rivet cluster
A deploy is a local build, one upload, and two Code Mode operations run through the execute tool. It needs Docker and a shell. It does not need the Rivet CLI or any other login.
Before starting
- Confirm the session can deploy. If
searchdoes not listrivet.deploy.prepare, the session is read-only or is pinned to a project or namespace, and the deploy cannot run from here. Say so instead of retrying. - Pick the cluster. Run
return (await rivet.cloud.v2.clusters.list()).items;inexecuteand use theclusterfield of the one to deploy to, which is its name. On a connection pinned to a cluster,rivet.context()reports it, andclusteris left out of every call below.
Steps
-
Build and measure the image in the shell. The platform must be
linux/amd64.docker 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_md5