Dagger
Search

build

No long description provided.

Installation

dagger install github.com/mjb141/daggerverse/build@b899043e111d8197d42b6f7c8f9600338cf44ed1

Entrypoint

Return Type
Build !
Arguments
NameTypeDescription
buildArgs[String ! ] No description provided
Example
dagger -m github.com/mjb141/daggerverse/build@b899043e111d8197d42b6f7c8f9600338cf44ed1 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
NameTypeDefault ValueDescription
keyString !-No description provided
valueString !-No description provided
Example
dagger -m github.com/mjb141/daggerverse/build@b899043e111d8197d42b6f7c8f9600338cf44ed1 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
NameTypeDefault ValueDescription
dirDirectory !-A directory.
fileNameString !"Dockerfile"No description provided
platformString !"linux/amd64"No description provided
Example
dagger -m github.com/mjb141/daggerverse/build@b899043e111d8197d42b6f7c8f9600338cf44ed1 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
NameTypeDefault ValueDescription
dirDirectory !-A directory.
Example
dagger -m github.com/mjb141/daggerverse/build@b899043e111d8197d42b6f7c8f9600338cf44ed1 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)
}