build
No long description provided.
Installation
dagger install github.com/mjb141/daggerverse/build@5b6a41953ed41cd91d1600da0b691e014b2cc6ce
Entrypoint
Return Type
Build !
Arguments
Name | Type | Description |
---|---|---|
buildArgs | [String ! ] | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/build@5b6a41953ed41cd91d1600da0b691e014b2cc6ce call \
func (m *myModule) example() *Build {
return dag.
Build()
}
@function
def example() -> dag.Build:
return (
dag.build()
)
@func()
example(): Build {
return dag
.build()
}
Types
Build 🔗
withBuildArg() 🔗
Return Type
Build !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
key | String ! | - | No description provided |
value | String ! | - | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/build@5b6a41953ed41cd91d1600da0b691e014b2cc6ce call \
with-build-arg --key string --value string
func (m *myModule) example(key string, value string) *Build {
return dag.
Build().
WithBuildArg(key, value)
}
@function
def example(key: str, value: str) -> dag.Build:
return (
dag.build()
.with_build_arg(key, value)
)
@func()
example(key: string, value: string): Build {
return dag
.build()
.withBuildArg(key, value)
}
build() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | A directory. |
fileName | String ! | "Dockerfile" | No description provided |
platform | String ! | "linux/amd64" | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/build@5b6a41953ed41cd91d1600da0b691e014b2cc6ce call \
build --dir DIR_PATH --file-name string --platform string
func (m *myModule) example(dir *Directory, fileName string, platform string) *Container {
return dag.
Build().
Build(dir, fileName, platform)
}
@function
def example(dir: dagger.Directory, file_name: str, platform: str) -> dagger.Container:
return (
dag.build()
.build(dir, file_name, platform)
)
@func()
example(dir: Directory, fileName: string, platform: string): Container {
return dag
.build()
.build(dir, fileName, platform)
}
test() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | A directory. |
Example
dagger -m github.com/mjb141/daggerverse/build@5b6a41953ed41cd91d1600da0b691e014b2cc6ce call \
test --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string {
return dag.
Build().
Test(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.build()
.test(dir)
)
@func()
async example(dir: Directory): Promise<string> {
return dag
.build()
.test(dir)
}