Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244{ "name": "cache", "runtime": "component", "exports": { "setup": { "description": "Configure a FluentCI cache protocol using required environment credentials.", "input": { "type": "object", "properties": { "protocol": { "type": "string", "description": "Cache protocol to configure. Allowed values: nix, bazel, bazel-grpc, turbo, nx, buildkit, sccache, go, gradle, maven, generic.", "enum": [ "nix", "bazel", "bazel-grpc", "turbo", "nx", "buildkit", "sccache", "go", "gradle", "maven", "generic" ] }, "url": { "type": "string", "description": "HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required." }, "configDir": { "type": "string", "description": "Fresh output directory; defaults to .fluentci/cache/PROTOCOL. Existing directories are rejected." }, "repository": { "type": "string", "description": "BuildKit repository and tag. Default: \"buildkit/default:cache\".", "default": "buildkit/default:cache" } }, "required": [ "protocol" ], "additionalProperties": false }, "output": { "type": "object", "properties": { "protocol": { "type": "string" }, "url": { "type": "string" }, "configDir": { "type": "string" }, "files": { "type": "array", "items": { "type": "string" } }, "environment": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "required": [ "name", "value" ], "additionalProperties": false } }, "binDir": { "type": "string" } }, "required": [ "protocol", "url", "configDir", "files", "environment", "binDir" ], "additionalProperties": false } }, "nixBuild": { "description": "Build a Nix installable while reusing and publishing signed FluentCI cache outputs.", "input": { "type": "object", "properties": { "url": { "type": "string", "description": "HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required." }, "flake": { "type": "string", "description": "Nix installable to build. Default: \".#default\".", "default": ".#default" } }, "required": [], "additionalProperties": false }, "output": { "type": "object", "properties": { "outcome": { "type": "string" } }, "required": [ "outcome" ], "additionalProperties": false } }, "save": { "description": "Compress and upload a file or directory to the generic HTTP cache.", "input": { "type": "object", "properties": { "key": { "type": "string", "description": "Safe slash-separated cache key." }, "path": { "type": "string", "description": "File or directory to cache." }, "url": { "type": "string", "description": "HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required." }, "compression": { "type": "string", "description": "Archive compression; restore detects it automatically. Default: \"zstd\". Allowed values: zstd, gzip, none.", "enum": [ "zstd", "gzip", "none" ], "default": "zstd" } }, "required": [ "key", "path" ], "additionalProperties": false }, "output": { "type": "object", "properties": { "key": { "type": "string" }, "path": { "type": "string" }, "hit": { "type": "boolean" }, "bytes": { "type": "string" } }, "required": [ "key", "path", "hit", "bytes" ], "additionalProperties": false } }, "restore": { "description": "Download, verify and restore a generic HTTP cache entry without replacing files on failure.", "input": { "type": "object", "properties": { "key": { "type": "string", "description": "Safe slash-separated cache key." }, "path": { "type": "string", "description": "Destination file or directory; cannot be the current directory or filesystem root." }, "url": { "type": "string", "description": "HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required." }, "required": { "type": "boolean", "description": "Fail if the cache key is missing; otherwise return hit=false. Default: false.", "default": false } }, "required": [ "key", "path" ], "additionalProperties": false }, "output": { "type": "object", "properties": { "key": { "type": "string" }, "path": { "type": "string" }, "hit": { "type": "boolean" }, "bytes": { "type": "string" } }, "required": [ "key", "path", "hit", "bytes" ], "additionalProperties": false } } }}