ci-dagger
No long description provided.
Installation
dagger install github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008Entrypoint
Return Type
CiDagger Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
func (m *MyModule) Example() *dagger.CiDagger {
return dag.
Cidagger()
}@function
def example() -> dagger.CiDagger:
return (
dag.ci_dagger()
)@func()
example(): CiDagger {
return dag
.ciDagger()
}Types
CiDagger 🔗
CiDagger is a collection of reusable Dagger-based CI primitives.
bun() 🔗
Bun runs a Bun project’s checks: bun install in each –install-dirs entry
(frozen lockfile by default), then the –run script at the repo root. Node
is present too (–node) because tools like jest run on node.
dagger call -m github.com/exowatt-oss/ci-dagger@main bun --src=. --repo=example-project --install-dirs=.,backend,frontend --frozen=false \
--dep-include='backend/prisma/**' --apt=openssl \
--run='cd backend && bunx prisma generate && cd .. && bun run lint && bun run test:backend'
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| installDirs | [String ! ] | - | Directories to |
| bun | String | "1.3.14" | Bun version (npm package bun@, installed through –npm-registry when set). |
| node | String | "22" | Node major version of the base image (node:-bookworm-slim). |
| frozen | Boolean | true |
|
| run | String | - | Bash script run after the install, at the repo root. |
| apt | [String ! ] | - | No description provided |
| env | [String ! ] | - | No description provided |
| depInclude | [String ! ] | - | Extra repo-relative globs the install needs (e.g. “backend/prisma/**”
for a |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| depCache | String | - | No description provided |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| npmRegistry | String | - | npm registry for the install (optional mirror). |
| testWorkers | Integer | 2 | Max test workers (VITEST_MAX_WORKERS, CI_TEST_WORKERS); 0 = runner default. |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
bun --src DIR_PATH --repo stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string {
return dag.
Cidagger().
Bun(ctx, src, repo)
}@function
async def example(src: dagger.Directory, repo: str) -> str:
return await (
dag.ci_dagger()
.bun(src, repo)
)@func()
async example(src: Directory, repo: string): Promise<string> {
return dag
.ciDagger()
.bun(src, repo)
}containerRun() 🔗
ContainerRun is the generic escape hatch: any image (pinned by digest unless –allow-tag) + optional apt packages + an optional –setup script (cached, before the source: e.g. install helm) + the –run script on the checkout, in –dir, through –shell (default sh, for busybox images). Covers tools no toolchain primitive models (helm, promtool, cmake, …).
dagger call -m github.com/exowatt-oss/ci-dagger@main container-run --src=. --repo=example-project \
--image=public.ecr.aws/docker/library/alpine:3.22@sha256:… \
--setup='apk add --no-cache helm' --run='helm template charts/x >/dev/null'
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| image | String ! | - | Image reference, pinned by digest (@sha256:<64 hex>). |
| run | String ! | - | Script run on the checkout, in –dir. |
| allowTag | Boolean | - | Accept an unpinned tag for –image. |
| dir | String | "." | Working directory, relative to the repo root. |
| apt | [String ! ] | - | Debian/Ubuntu packages (only for apt-based images). |
| setup | String | - | Script run once in the image before the source is mounted (cached by the engine). |
| shell | String | "sh" | Shell for –run (“sh” or “bash”); errexit is always on. –setup always runs through sh. |
| env | [String ! ] | - | No description provided |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| testWorkers | Integer | 2 | Max test workers (CI_TEST_WORKERS etc.); 0 = unset. |
| gitIndex | Boolean | - | Synthesize a git repository from the checkout (needs git in the image). |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
container-run --src DIR_PATH --repo string --image string --run stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string, image string, run string) string {
return dag.
Cidagger().
Containerrun(ctx, src, repo, image, run)
}@function
async def example(src: dagger.Directory, repo: str, image: str, run: str) -> str:
return await (
dag.ci_dagger()
.containerrun(src, repo, image, run)
)@func()
async example(src: Directory, repo: string, image: string, run: string): Promise<string> {
return dag
.ciDagger()
.containerRun(src, repo, image, run)
}dropDb() 🔗
DropDb drops a database created by EphemeralDb. It refuses names outside the constrained ci_ form.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| pgAdminUrl | Secret ! | - | No description provided |
| name | String ! | - | No description provided |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
drop-db --pg-admin-url env:MYSECRET --name stringfunc (m *MyModule) Example(ctx context.Context, pgAdminUrl *dagger.Secret, name string) {
return dag.
Cidagger().
Dropdb(ctx, pgAdminUrl, name)
}@function
async def example(pgadminurl: dagger.Secret, name: str) -> None:
return await (
dag.ci_dagger()
.dropdb(pgadminurl, name)
)@func()
async example(pgAdminUrl: Secret, name: string): Promise<void> {
return dag
.ciDagger()
.dropDb(pgAdminUrl, name)
}ephemeralDb() 🔗
EphemeralDb creates an isolated database on a caller-provided PostgreSQL server using an admin role with CREATEDB. Pair it with DropDb when finished.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| pgAdminUrl | Secret ! | - | PostgreSQL admin URL supplied as a Dagger secret. |
| repo | String ! | - | Short repository identifier used in the database name. |
| sha | String ! | - | Full commit SHA used to distinguish databases for different revisions. |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
ephemeral-db --pg-admin-url env:MYSECRET --repo string --sha stringfunc (m *MyModule) Example(ctx context.Context, pgAdminUrl *dagger.Secret, repo string, sha string) string {
return dag.
Cidagger().
Ephemeraldb(ctx, pgAdminUrl, repo, sha)
}@function
async def example(pgadminurl: dagger.Secret, repo: str, sha: str) -> str:
return await (
dag.ci_dagger()
.ephemeraldb(pgadminurl, repo, sha)
)@func()
async example(pgAdminUrl: Secret, repo: string, sha: string): Promise<string> {
return dag
.ciDagger()
.ephemeralDb(pgAdminUrl, repo, sha)
}go() 🔗
Go runs a Go module’s checks: the official golang image for go.mod’s
toolchain/go version (or –go), a dependency layer (go mod download from
go.mod/go.sum only), a persistent build cache, then –run (default
go vet ./... && go test -race ./...) in –dir.
dagger call -m github.com/exowatt-oss/ci-dagger@main go --src=. --repo=example-project --run='go vet ./... && go test ./...'
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| dir | String | "." | Module directory (holds go.mod), relative to the repo root. |
| goVersion | String | - | Go version (golang:-bookworm); empty = go.mod toolchain / go directive. |
| run | String | - | Bash script run in –dir (set -euo pipefail). Default: go vet ./… && go test -race ./… |
| apt | [String ! ] | - | No description provided |
| env | [String ! ] | - | No description provided |
| depInclude | [String ! ] | - | Extra repo-relative globs |
| goproxy | String | - | GOPROXY for the download (default: Go’s default, proxy.golang.org). |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| depCache | String | - | No description provided |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| testWorkers | Integer | 2 | Max test workers (GOFLAGS -p, CI_TEST_WORKERS); 0 = runner default. |
| gitIndex | Boolean | - | Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked. .git never enters the call. |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
go --src DIR_PATH --repo stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string {
return dag.
Cidagger().
Go(ctx, src, repo)
}@function
async def example(src: dagger.Directory, repo: str) -> str:
return await (
dag.ci_dagger()
.go(src, repo)
)@func()
async example(src: Directory, repo: string): Promise<string> {
return dag
.ciDagger()
.go(src, repo)
}npm() 🔗
Npm runs a Node/npm project’s checks: bounded npm ci (supports optional npm mirrors,
git+ssh deps via –ssh-key), then npm run <script> for each –scripts
entry, then the –run script, all in –dir. (Named npm, not node: node
is a reserved GraphQL root field.)
dagger call -m github.com/exowatt-oss/ci-dagger@main npm --src=. --repo=example-project --dir=frontend --node=24 \
--scripts=typecheck,lint,test,build --npm-registry=https://registry.npmjs.org/
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| dir | String | "." | Project directory (holds package.json / package-lock.json). |
| node | String | "22" | Node major version (node:-bookworm-slim). |
| scripts | [String ! ] | - | npm scripts to run in order ( |
| run | String | - | Bash script run after the scripts, in –dir. |
| apt | [String ! ] | - | No description provided |
| env | [String ! ] | - | No description provided |
| sshKey | Secret | - | Read-only deploy key for git+ssh dependencies (install step only). |
| depInclude | [String ! ] | - | Extra repo-relative globs the install needs (e.g. a postinstall’s inputs). |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| depCache | String | - | No description provided |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| npmRegistry | String | - | npm registry for the install (optional mirror), e.g. https://registry.npmjs.org/. |
| testWorkers | Integer | 2 | Max test workers (VITEST_MAX_WORKERS, CI_TEST_WORKERS); 0 = runner default. |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
npm --src DIR_PATH --repo stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string {
return dag.
Cidagger().
Npm(ctx, src, repo)
}@function
async def example(src: dagger.Directory, repo: str) -> str:
return await (
dag.ci_dagger()
.npm(src, repo)
)@func()
async example(src: Directory, repo: string): Promise<string> {
return dag
.ciDagger()
.npm(src, repo)
}pnpm() 🔗
Pnpm runs a pnpm project’s checks: pnpm (the packageManager version from
package.json, or –pnpm) installed from npm or a configured mirror, a dependency layer
built by pnpm fetch from pnpm-lock.yaml alone, then a bounded, retried
pnpm install --frozen-lockfile on the full checkout, pnpm run <script>
for each –scripts entry and the –run script, all in –dir.
dagger call -m github.com/exowatt-oss/ci-dagger@main pnpm --src=. --repo=example-project --node=24 \
--scripts=typecheck,test,lint,check:max-lines-ratchet --npm-registry=https://registry.npmjs.org/
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | Only the ROOT node_modules is left out: repos may commit vendored node_modules trees (e.g. native payloads under resources/), and a fresh CI clone has no other node_modules . |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| dir | String | "." | Project (workspace root) directory: holds package.json and pnpm-lock.yaml. |
| node | String | "22" | Node major version (node:-bookworm-slim). |
| pnpm | String | - | pnpm version; empty = package.json “packageManager” (as pnpm/action-setup). |
| frozen | Boolean | true |
|
| installArgs | [String ! ] | - | Extra |
| scripts | [String ! ] | - | Scripts to run in order ( |
| run | String | - | Bash script run after the scripts, in –dir (set -euo pipefail). |
| apt | [String ! ] | - | No description provided |
| env | [String ! ] | - | No description provided |
| depInclude | [String ! ] | - | Extra repo-relative globs |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| depCache | String | - | No description provided |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| npmRegistry | String | - | npm registry for pnpm itself and the install (optional mirror), e.g. https://registry.npmjs.org/. |
| testWorkers | Integer | 2 | Max test workers (VITEST_MAX_WORKERS, CI_TEST_WORKERS); 0 = runner default. |
| gitIndex | Boolean | - | Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked. .git never enters the call. |
| nonRoot | Boolean | - | Run the scripts and –run as an unprivileged user “ci” (uid 1000, owns /src and the store) instead of root, like a GitHub-hosted runner: tests that assert permission errors cannot fail as root . |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
pnpm --src DIR_PATH --repo stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string {
return dag.
Cidagger().
Pnpm(ctx, src, repo)
}@function
async def example(src: dagger.Directory, repo: str) -> str:
return await (
dag.ci_dagger()
.pnpm(src, repo)
)@func()
async example(src: Directory, repo: string): Promise<string> {
return dag
.ciDagger()
.pnpm(src, repo)
}pythonPlain() 🔗
PythonPlain runs a plain Python project (no uv project: requirements files
or nothing at all): python:-slim-bookworm, pip install -r each
–requirements file plus –pip packages (dependency layer keyed on those
files), then –run in –dir. For uv projects use python-uv.
dagger call -m github.com/exowatt-oss/ci-dagger@main python-plain --src=. --repo=example-project --run='python -m unittest discover -s tests -v'
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| dir | String | "." | Working directory, relative to the repo root. |
| python | String | "3.12" | Python version (python:-slim-bookworm). |
| requirements | [String ! ] | - | Requirement files (relative to –dir) installed with |
| pip | [String ! ] | - | Extra packages for |
| run | String ! | - | Bash script run in –dir (set -euo pipefail). |
| apt | [String ! ] | - | No description provided |
| env | [String ! ] | - | No description provided |
| depInclude | [String ! ] | - | Extra repo-relative globs the install needs (constraint files, local wheels). |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| depCache | String | - | No description provided |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| pypiIndex | String | - | Python simple index for pip (optional mirror), e.g. https://pypi.org/simple/. |
| testWorkers | Integer | 2 | Max test workers (PYTEST_XDIST_AUTO_NUM_WORKERS, CI_TEST_WORKERS); 0 = runner default. |
| gitIndex | Boolean | - | Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked ( |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
python-plain --src DIR_PATH --repo string --run stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string, run string) string {
return dag.
Cidagger().
Pythonplain(ctx, src, repo, run)
}@function
async def example(src: dagger.Directory, repo: str, run: str) -> str:
return await (
dag.ci_dagger()
.pythonplain(src, repo, run)
)@func()
async example(src: Directory, repo: string, run: string): Promise<string> {
return dag
.ciDagger()
.pythonPlain(src, repo, run)
}pythonUv() 🔗
PythonUv runs a uv project’s checks: uv sync (supports optional PyPI mirrors), then the
named –checks in order (ruff, ruff-format, pyright, mypy, pytest, alembic,
alembic-check), then the –run script, all in –dir. With –pg-admin-url
each run gets its own database on a caller-provided PostgreSQL server (never a
Postgres container), exported as DATABASE_URL (scheme –database-url-scheme)
and PG* variables, dropped at the end.
dagger call -m github.com/exowatt-oss/ci-dagger@main python-uv --src=. --repo=example-project --dir=backend \
--pg-admin-url=env://PG_ADMIN_URL --checks=alembic,ruff,pytest \
--dep-cache=registry.example.com/ci-cache --dep-cache-password=env://CACHE_PASSWORD
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | Repository checkout. Local caches/venvs and VCS metadata never enter the call. |
| repo | String ! | - | Repository name (“Owner/name” or “name”): dep-cache path and database name. |
| dir | String | "." | Project directory (holds pyproject.toml / uv.lock), relative to the repo root. |
| python | String | "3.12" | Python version (python:-slim-bookworm). uv never downloads interpreters. |
| syncArgs | [String ! ] | - | Extra |
| checks | [String ! ] | - | Named checks, run in order: ruff, ruff-format, pyright, mypy, pytest, alembic, alembic-check. |
| run | String | - | Bash script run after the checks, in –dir (set -euo pipefail). For chains the presets don’t cover, e.g. “uv run alembic upgrade head && cd ../core && uv run –project ../backend pytest -q”. |
| apt | [String ! ] | - | Extra Debian packages (e.g. postgresql-client, qpdf, libgl1). |
| env | [String ! ] | - | Non-secret KEY=VALUE environment for the checks. |
| depInclude | [String ! ] | - | Extra repo-relative globs the dependency layer needs (path dependencies outside –dir, e.g. “clients/python/**”). Every pyproject.toml/uv.lock is always included. |
| pgAdminUrl | Secret | - | Admin URL of the native PostgreSQL (role with CREATEDB), e.g. env://PG_ADMIN_URL on the caller-provided PostgreSQL server. Omit for no database. |
| databaseUrlScheme | String | "postgresql+psycopg" | URL scheme of the exported database URL (SQLAlchemy drivers: postgresql+psycopg, postgresql |
| databaseEnv | [String ! ] | - | Variables that receive the database URL (default DATABASE_URL). |
| sha | String | - | Commit SHA (part of the database name). |
| depCache | String | - | Dependency-image cache “/” (see the README Configuration section). |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| pypiIndex | String | - | Python simple index for uv (optional mirror), e.g. https://pypi.org/simple/. Projects that pin their own [[tool.uv.index]] keep it. |
| testWorkers | Integer | 2 | Max test workers (PYTEST_XDIST_AUTO_NUM_WORKERS, CI_TEST_WORKERS); 0 = runner default. |
| sshKey | [Secret ! ] | - | Read-only deploy keys for git+ssh dependencies (uv sources such as
ssh://git@github.com/Owner/repo), repeatable. Secret mounts for |
| sshKeyRepo | [String ! ] | - | GitHub “Owner/name” of each –ssh-key, same order; required with more than one key (GitHub binds a session to the first key it accepts). |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
python-uv --src DIR_PATH --repo stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string {
return dag.
Cidagger().
Pythonuv(ctx, src, repo)
}@function
async def example(src: dagger.Directory, repo: str) -> str:
return await (
dag.ci_dagger()
.pythonuv(src, repo)
)@func()
async example(src: Directory, repo: string): Promise<string> {
return dag
.ciDagger()
.pythonUv(src, repo)
}rust() 🔗
Rust runs a Cargo project’s checks: the official rust image (–rust, default
the current stable “1”), the toolchain + components the checkout pins in
rust-toolchain(.toml) (or –toolchain), optional cargo tools (–tools, e.g.
cargo-deny), a dependency layer (cargo fetch from the manifests and
Cargo.lock only), a per-repo target-dir cache, then –run (default
cargo fmt --check && cargo clippy -D warnings && cargo test) in –dir.
dagger call -m github.com/exowatt-oss/ci-dagger@main rust --src=. --repo=example-project --tools=cargo-deny \
--run='cargo fmt --all -- --check && cargo clippy --all-targets -- -D warnings && cargo test && cargo deny check'
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| repo | String ! | - | Repository name (“Owner/name” or “name”). |
| dir | String | "." | Workspace directory (holds Cargo.toml / Cargo.lock), relative to the repo root. |
| rust | String | "1" | Base image version (rust:-bookworm), e.g. “1” (current stable) or “1.89”; “-trixie” selects the Debian 13 image (glibc 2.41, e.g. for Verus release binaries). |
| toolchainChannel | String | - | Toolchain to install and use (overrides rust-toolchain.toml), e.g. “stable”, “1.89.0”. |
| components | [String ! ] | - | rustup components (default clippy, rustfmt; plus any rust-toolchain.toml lists). |
| tools | [String ! ] | - | Cargo tools installed with |
| run | String | - | Bash script run in –dir (set -euo pipefail). Default: cargo fmt –check, clippy -D warnings, cargo test. |
| apt | [String ! ] | - | No description provided |
| env | [String ! ] | - | No description provided |
| depInclude | [String ! ] | - | Extra repo-relative globs |
| pgAdminUrl | Secret | - | No description provided |
| databaseUrlScheme | String | "postgresql" | No description provided |
| databaseEnv | [String ! ] | - | No description provided |
| sha | String | - | No description provided |
| depCache | String | - | No description provided |
| depCacheUsername | String | "" | No description provided |
| depCachePassword | Secret | - | No description provided |
| testWorkers | Integer | 2 | Max test threads (RUST_TEST_THREADS, CI_TEST_WORKERS) and 2x build jobs; 0 = runner default. |
| gitIndex | Boolean | - | Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked. .git never enters the call. |
| verus | String | - | Verus version to provide to –run , e.g. 0.2026.10.26.d17fbd0. The pinned zip (–verus-url, default the x86-linux asset of the GitHub release release/) is fetched with its –verus-sha256 checked and unpacked into an immutable, content-addressed layer mounted read-only at /opt/verus: \(VERUS is the binary, \)VERUS_HOME its directory, and it is on PATH. No cache volume ever holds Verus. |
| verusSha256 | String | - | sha256 (64 hex digits) of the Verus zip. Required with –verus. |
| verusUrl | String | - | https URL of the Verus zip (e.g. a third-party mirror). Default: the GitHub release asset verus--x86-linux.zip. |
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
rust --src DIR_PATH --repo stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string {
return dag.
Cidagger().
Rust(ctx, src, repo)
}@function
async def example(src: dagger.Directory, repo: str) -> str:
return await (
dag.ci_dagger()
.rust(src, repo)
)@func()
async example(src: Directory, repo: string): Promise<string> {
return dag
.ciDagger()
.rust(src, repo)
}