build
No long description provided.
Installation
dagger install github.com/mjb141/daggerverse/build@7a287fbb5f350138530d55dc78c56ac3aec6e7f1
Entrypoint
Return Type
Build !
Arguments
Name | Type | Description |
---|---|---|
buildArgs | [String ! ] | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/build@7a287fbb5f350138530d55dc78c56ac3aec6e7f1 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@7a287fbb5f350138530d55dc78c56ac3aec6e7f1 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@7a287fbb5f350138530d55dc78c56ac3aec6e7f1 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)
}