Dagger
Search

multi

An example for building single platform and multi platform images

Installation

dagger install github.com/jpadams/cullen@1d7b331d5fef3572e8355f79bdedf92ff68676d3

Entrypoint

Return Type
Multi
Example
func (m *myModule) example() *Multi  {
	return dag.
			Multi()
}
@function
def example() -> dag.Multi:
	return (
		dag.multi()
	)
@func()
example(): Multi {
	return dag
		.multi()
}

Types

Multi 🔗

buildPush() 🔗

Build and push an image of a certain platform

Return Type
String !
Arguments
NameTypeDefault ValueDescription
platformString !-No description provided
imageString !-No description provided
tagString !-No description provided
Example
dagger -m github.com/jpadams/cullen@1d7b331d5fef3572e8355f79bdedf92ff68676d3 call \
 build-push --platform string --image string --tag string
func (m *myModule) example(ctx context.Context, platform string, image string, tag string) string  {
	return dag.
			Multi().
			BuildPush(ctx, platform, image, tag)
}
@function
async def example(platform: str, image: str, tag: str) -> str:
	return await (
		dag.multi()
		.build_push(platform, image, tag)
	)
@func()
async example(platform: string, image: string, tag: string): Promise<string> {
	return dag
		.multi()
		.buildPush(platform, image, tag)
}

multiPush() 🔗

Push a multi-platform image

Return Type
String !
Arguments
NameTypeDefault ValueDescription
imageString !-No description provided
platforms[String ! ] !-No description provided
tagString !-No description provided
Example
dagger -m github.com/jpadams/cullen@1d7b331d5fef3572e8355f79bdedf92ff68676d3 call \
 multi-push --image string --platforms string1 --platforms string2 --tag string
func (m *myModule) example(ctx context.Context, image string, platforms []string, tag string) string  {
	return dag.
			Multi().
			MultiPush(ctx, image, platforms, tag)
}
@function
async def example(image: str, platforms: List[str], tag: str) -> str:
	return await (
		dag.multi()
		.multi_push(image, platforms, tag)
	)
@func()
async example(image: string, platforms: string[], tag: string): Promise<string> {
	return dag
		.multi()
		.multiPush(image, platforms, tag)
}