update_artifact
Update an existing deployed artifact with new source files. Triggers a rebuild and redeployment. A new version snapshot is created automatically.
Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
artifact_id | string | Yes | ID of the artifact to update |
files | object | Yes | Updated file map (full replacement of source files) |
env_vars | object | No | Updated environment variables |
secret_refs | object | No | Updated secret references in format secret-name:key |
Example
{
"artifact_id": "a1b2c3d4",
"files": {
"index.html": "<!DOCTYPE html><html><body>Updated!</body></html>",
"style.css": "body { background: #000; color: #fff; }"
},
"env_vars": {
"NODE_ENV": "production"
}
}
Response
{
"artifact_id": "a1b2c3d4",
"name": "my-portfolio",
"url": "http://my-portfolio.default.127.0.0.1.sslip.io:31080",
"target": "knative",
"status": "running",
"image_ref": "kind-registry:5000/vibed-artifacts/my-portfolio:v2",
"version": 2
}
What Happens
- Validates the artifact exists and the caller has permission
- Stores the new source files (replaces previous files)
- Rebuilds the container image
- Redeploys with the new image
- Creates a version snapshot for rollback