updatecli
Reusable Updatecli runtime for Dagger pipelines.
Installation
dagger install github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832Entrypoint
Return Type
Updatecli !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | null | Optional working tree for local targets |
| imageRegistry | String | "ghcr.io" | Updatecli runtime image registry |
| imageRepository | String | "updatecli/updatecli" | Updatecli runtime image repository |
| imageTag | String | "v0.123.0" | Updatecli runtime image tag |
| containerUserId | String | "65532" | Container execution user |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
func (m *MyModule) Example() *dagger.Updatecli {
return dag.
Updatecli()
}@function
def example() -> dagger.Updatecli:
return (
dag.updatecli()
)@func()
example(): Updatecli {
return dag
.updatecli()
}Types
Updatecli 🔗
Reusable Updatecli runtime without source-specific orchestration.
appliedSource() 🔗
Apply the manifest and return the resulting /work tree, not SCM clones.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| config | File ! | - | Updatecli manifest whose targets update the local working tree |
| values | [File ! ] | null | Optional values files, merged in supplied order |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
applied-source --config file:pathfunc (m *MyModule) Example(config *dagger.File) *dagger.Directory {
return dag.
Updatecli().
Appliedsource(config)
}@function
def example(config: dagger.File) -> dagger.Directory:
return (
dag.updatecli()
.appliedsource(config)
)@func()
example(config: File): Directory {
return dag
.updatecli()
.appliedSource(config)
}apply() 🔗
Apply pipeline changes, commits, and actions declared by the manifest.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| config | File ! | - | Updatecli YAML or JSON manifest, including Go templates |
| values | [File ! ] | null | Optional values files, merged in supplied order |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
apply --config file:pathfunc (m *MyModule) Example(ctx context.Context, config *dagger.File) string {
return dag.
Updatecli().
Apply(ctx, config)
}@function
async def example(config: dagger.File) -> str:
return await (
dag.updatecli()
.apply(config)
)@func()
async example(config: File): Promise<string> {
return dag
.updatecli()
.apply(config)
}container() 🔗
Return the runtime with a writable home and working tree.
Return Type
Container ! Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Updatecli().
Container()
}@function
def example() -> dagger.Container:
return (
dag.updatecli()
.container()
)@func()
example(): Container {
return dag
.updatecli()
.container()
}diff() 🔗
Preview pipeline changes and return combined stdout and stderr.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| config | File ! | - | Updatecli YAML or JSON manifest, including Go templates |
| values | [File ! ] | null | Optional values files, merged in supplied order |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
diff --config file:pathfunc (m *MyModule) Example(ctx context.Context, config *dagger.File) string {
return dag.
Updatecli().
Diff(ctx, config)
}@function
async def example(config: dagger.File) -> str:
return await (
dag.updatecli()
.diff(config)
)@func()
async example(config: File): Promise<string> {
return dag
.updatecli()
.diff(config)
}manifestShow() 🔗
Render manifests using Updatecli without running sources or targets.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| config | File ! | - | Updatecli manifest to render without executing pipelines |
| values | [File ! ] | null | Optional values files, merged in supplied order |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
manifest-show --config file:pathfunc (m *MyModule) Example(ctx context.Context, config *dagger.File) string {
return dag.
Updatecli().
Manifestshow(ctx, config)
}@function
async def example(config: dagger.File) -> str:
return await (
dag.updatecli()
.manifestshow(config)
)@func()
async example(config: File): Promise<string> {
return dag
.updatecli()
.manifestShow(config)
}withDirectory() 🔗
Add helper files owned by the runtime user.
Return Type
Updatecli !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| path | String ! | - | Destination path inside the runtime container |
| directory | Directory ! | - | Directory containing helpers or other runtime files |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
with-directory --path string --directory DIR_PATHfunc (m *MyModule) Example(path string, directory *dagger.Directory) *dagger.Updatecli {
return dag.
Updatecli().
Withdirectory(path, directory)
}@function
def example(path: str, directory: dagger.Directory) -> dagger.Updatecli:
return (
dag.updatecli()
.withdirectory(path, directory)
)@func()
example(path: string, directory: Directory): Updatecli {
return dag
.updatecli()
.withDirectory(path, directory)
}withEnvVariable() 🔗
Add a plain environment variable; use with_secret_variable for tokens.
Return Type
Updatecli !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | Environment variable name |
| value | String ! | - | Non-secret environment variable value |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
with-env-variable --name string --value stringfunc (m *MyModule) Example(name string, value string) *dagger.Updatecli {
return dag.
Updatecli().
Withenvvariable(name, value)
}@function
def example(name: str, value: str) -> dagger.Updatecli:
return (
dag.updatecli()
.withenvvariable(name, value)
)@func()
example(name: string, value: string): Updatecli {
return dag
.updatecli()
.withEnvVariable(name, value)
}withSecretVariable() 🔗
Add a secret environment variable without exposing its value in logs.
Return Type
Updatecli !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | Secret environment variable name |
| secret | Secret ! | - | Secret value supplied by the caller |
Example
dagger -m github.com/riftonix/daggerverse/modules/updatecli@3503b292f211b4359732e0170653fdb6ffb5d832 call \
with-secret-variable --name string --secret env:MYSECRETfunc (m *MyModule) Example(name string, secret *dagger.Secret) *dagger.Updatecli {
return dag.
Updatecli().
Withsecretvariable(name, secret)
}@function
def example(name: str, secret: dagger.Secret) -> dagger.Updatecli:
return (
dag.updatecli()
.withsecretvariable(name, secret)
)@func()
example(name: string, secret: Secret): Updatecli {
return dag
.updatecli()
.withSecretVariable(name, secret)
}