Dagger
Search

build

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/antonkad/build-image@3b95b14d17dbfa73ed73025518ac48bcfc8fdc2d

Entrypoint

Return Type
Build
Example
dagger -m github.com/antonkad/build-image@3b95b14d17dbfa73ed73025518ac48bcfc8fdc2d 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 🔗

buildEnv() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/antonkad/build-image@3b95b14d17dbfa73ed73025518ac48bcfc8fdc2d call \
 build-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Build().
			BuildEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.build()
		.build_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.build()
		.buildEnv(source)
}

build() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
repositoryString !-No description provided
refString -No description provided
pathString -No description provided
Example
dagger -m github.com/antonkad/build-image@3b95b14d17dbfa73ed73025518ac48bcfc8fdc2d call \
 build --repository string
func (m *myModule) example(repository string) *Container  {
	return dag.
			Build().
			Build(repository)
}
@function
def example(repository: str) -> dagger.Container:
	return (
		dag.build()
		.build(repository)
	)
@func()
example(repository: string): Container {
	return dag
		.build()
		.build(repository)
}