Dagger
Search

apko

Builds containers using the Apko CLI

Installation

dagger install github.com/opopops/daggerverse/apko@v1.8.0

Entrypoint

Return Type
Apko !
Arguments
NameTypeDefault ValueDescription
imageString !"cgr.dev/chainguard/wolfi-base:latest"wolfi-base image
versionString !"latest"Apko version
userString !"65532"Image user
containerContainer nullNo description provided
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 --image string --version string --user string
func (m *myModule) example(image string, version string, user string) *dagger.Apko  {
	return dag.
			Apko(image, version, user)
}
@function
def example(image: str, version: str, user: str, ) -> dagger.Apko:
	return (
		dag.apko(image, version, user)
	)
@func()
example(image: string, version: string, user: string, ): Apko {
	return dag
		.apko(image, version, user)
}

Types

Image 🔗

Apko Image module

container() 🔗

Returns image container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar nullNo description provided
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 container
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool) *dagger.Container  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Container()
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> dagger.Container:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.container()
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): Container {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.container()
}

copy() 🔗

Copy image to another registry

Return Type
String !
Arguments
NameTypeDefault ValueDescription
targetString !-Target
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 copy --target string
func (m *myModule) example(ctx context.Context, config *dagger.File, tag []string, sbom bool, arch string, local bool, target string) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Copy(ctx, target)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool, target: str) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.copy(target)
	)
@func()
async example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean, target: string): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.copy(target)
}

digest() 🔗

Retrieves the image digest

Return Type
String !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 digest
func (m *myModule) example(ctx context.Context, config *dagger.File, tag []string, sbom bool, arch string, local bool) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Digest(ctx)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.digest()
	)
@func()
async example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.digest()
}

platforms() 🔗

Retrieves image platforms

Return Type
[Scalar ! ] !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 platforms
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool) []  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Platforms()
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> List[]:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.platforms()
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): [] {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.platforms()
}

ref() 🔗

Retrieves the fully qualified image ref

Return Type
String !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 ref
func (m *myModule) example(ctx context.Context, config *dagger.File, tag []string, sbom bool, arch string, local bool) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Ref(ctx)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.ref()
	)
@func()
async example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.ref()
}

registry() 🔗

Retrieves the registry host from image address

Return Type
String !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 registry
func (m *myModule) example(ctx context.Context, config *dagger.File, tag []string, sbom bool, arch string, local bool) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Registry(ctx)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.registry()
	)
@func()
async example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.registry()
}

sbomDir() 🔗

Returns the SBOM directory

Return Type
Directory !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 sbom-dir
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool) *dagger.Directory  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			SbomDir()
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> dagger.Directory:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.sbom_dir()
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): Directory {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.sbomDir()
}

scan() 🔗

Scan image using Grype

Return Type
File !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !trueSet to false to avoid failing based on severity-cutoff
outputFormatString !"sarif"Report output formatter
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 scan --fail boolean --output-format string
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool, fail bool, outputFormat string) *dagger.File  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Scan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool, fail: bool, output_format: str) -> dagger.File:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.scan(fail, output_format)
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean, fail: boolean, outputFormat: string): File {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.scan(fail, outputFormat)
}

sign() 🔗

Sign image with Cosign

Return Type
String !
Arguments
NameTypeDefault ValueDescription
privateKeySecret nullNo description provided
passwordSecret nullNo description provided
oidcProviderString nullNo description provided
oidcIssuerString nullNo description provided
recursiveBoolean trueNo description provided
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 sign
func (m *myModule) example(ctx context.Context, config *dagger.File, tag []string, sbom bool, arch string, local bool) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Sign(ctx)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.sign()
	)
@func()
async example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.sign()
}

tag() 🔗

Tag image

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tagString !-Tag
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 tag --tag string
func (m *myModule) example(ctx context.Context, config *dagger.File, tag []string, sbom bool, arch string, local bool, tag1 string) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			Tag(ctx, tag1)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool, tag1: str) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.tag(tag1)
	)
@func()
async example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean, tag1: string): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.tag(tag1)
}

withCopy() 🔗

Copy image to another registry (for chaining)

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
targetString !-Target
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 with-copy --target string
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool, target string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			WithCopy(target)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool, target: str) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.with_copy(target)
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean, target: string): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.withCopy(target)
}

withScan() 🔗

Scan image using Grype (for chaining)

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !trueSet to false to avoid failing based on severity-cutoff
outputFormatString !"sarif"Report output formatter
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 with-scan --fail boolean --output-format string
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool, fail bool, outputFormat string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			WithScan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool, fail: bool, output_format: str) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.with_scan(fail, output_format)
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean, fail: boolean, outputFormat: string): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.withScan(fail, outputFormat)
}

withSign() 🔗

Sign image with Cosign (for chaining)

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
privateKeySecret nullNo description provided
passwordSecret nullNo description provided
oidcProviderString nullNo description provided
oidcIssuerString nullNo description provided
recursiveBoolean trueNo description provided
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 with-sign
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			WithSign()
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.with_sign()
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.withSign()
}

withTag() 🔗

Tag image (for chaining)

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
tagString !-Tag
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean \
 with-tag --tag string
func (m *myModule) example(config *dagger.File, tag []string, sbom bool, arch string, local bool, tag1 string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, arch, local).
			WithTag(tag1)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool, tag1: str) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, arch, local)
		.with_tag(tag1)
	)
@func()
example(config: File, tag: string[], sbom: boolean, arch: string, local: boolean, tag1: string): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, arch, local)
		.withTag(tag1)
}

Build 🔗

Apko Build module

buildDir() 🔗

Returns the build directory

Return Type
Directory !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 build --config file:path --tag string --arch string \
 build-dir
func (m *myModule) example(config *dagger.File, tag string, arch string) *dagger.Directory  {
	return dag.
			Apko().
			Build(config, tag, arch).
			BuildDir()
}
@function
def example(config: dagger.File, tag: str, arch: str) -> dagger.Directory:
	return (
		dag.apko()
		.build(config, tag, arch)
		.build_dir()
	)
@func()
example(config: File, tag: string, arch: string): Directory {
	return dag
		.apko()
		.build(config, tag, arch)
		.buildDir()
}

ociDir() 🔗

Returns the OCI directory

Return Type
Directory !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 build --config file:path --tag string --arch string \
 oci-dir
func (m *myModule) example(config *dagger.File, tag string, arch string) *dagger.Directory  {
	return dag.
			Apko().
			Build(config, tag, arch).
			OciDir()
}
@function
def example(config: dagger.File, tag: str, arch: str) -> dagger.Directory:
	return (
		dag.apko()
		.build(config, tag, arch)
		.oci_dir()
	)
@func()
example(config: File, tag: string, arch: string): Directory {
	return dag
		.apko()
		.build(config, tag, arch)
		.ociDir()
}

publish() 🔗

Publish multi-arch image

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
tag[String ! ] ![]Additional tags
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 build --config file:path --tag string --arch string \
 publish --tag string1 --tag string2
func (m *myModule) example(config *dagger.File, tag string, arch string, tag1 []string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Build(config, tag, arch).
			Publish(tag1)
}
@function
def example(config: dagger.File, tag: str, arch: str, tag1: List[str]) -> dagger.ApkoImage:
	return (
		dag.apko()
		.build(config, tag, arch)
		.publish(tag1)
	)
@func()
example(config: File, tag: string, arch: string, tag1: string[]): ApkoImage {
	return dag
		.apko()
		.build(config, tag, arch)
		.publish(tag1)
}

sbomDir() 🔗

Returns the SBOM directory

Return Type
Directory !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 build --config file:path --tag string --arch string \
 sbom-dir
func (m *myModule) example(config *dagger.File, tag string, arch string) *dagger.Directory  {
	return dag.
			Apko().
			Build(config, tag, arch).
			SbomDir()
}
@function
def example(config: dagger.File, tag: str, arch: str) -> dagger.Directory:
	return (
		dag.apko()
		.build(config, tag, arch)
		.sbom_dir()
	)
@func()
example(config: File, tag: string, arch: string): Directory {
	return dag
		.apko()
		.build(config, tag, arch)
		.sbomDir()
}

scan() 🔗

Scan build result using Grype

Return Type
File !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !trueSet to false to avoid failing based on severity-cutoff
outputFormatString !"sarif"Report output formatter
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 build --config file:path --tag string --arch string \
 scan --fail boolean --output-format string
func (m *myModule) example(config *dagger.File, tag string, arch string, fail bool, outputFormat string) *dagger.File  {
	return dag.
			Apko().
			Build(config, tag, arch).
			Scan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: str, arch: str, fail: bool, output_format: str) -> dagger.File:
	return (
		dag.apko()
		.build(config, tag, arch)
		.scan(fail, output_format)
	)
@func()
example(config: File, tag: string, arch: string, fail: boolean, outputFormat: string): File {
	return dag
		.apko()
		.build(config, tag, arch)
		.scan(fail, outputFormat)
}

withScan() 🔗

Scan build result using Grype (for chaining)

Return Type
Build !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !trueSet to false to avoid failing based on severity-cutoff
outputFormatString !"sarif"Report output formatter
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 build --config file:path --tag string --arch string \
 with-scan --fail boolean --output-format string
func (m *myModule) example(config *dagger.File, tag string, arch string, fail bool, outputFormat string) *dagger.ApkoBuild  {
	return dag.
			Apko().
			Build(config, tag, arch).
			WithScan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: str, arch: str, fail: bool, output_format: str) -> dagger.ApkoBuild:
	return (
		dag.apko()
		.build(config, tag, arch)
		.with_scan(fail, output_format)
	)
@func()
example(config: File, tag: string, arch: string, fail: boolean, outputFormat: string): ApkoBuild {
	return dag
		.apko()
		.build(config, tag, arch)
		.withScan(fail, outputFormat)
}

Apko 🔗

Apko module

build() 🔗

Build an image using Apko

Return Type
Build !
Arguments
NameTypeDefault ValueDescription
contextDirectory -Working dir
configFile !-Config file
tagString !-Image tag
archString !""Architectures to build for
keyringAppendFile nullPath to extra keys to include in the keyring
repositoryAppendDirectory nullPath to extra repositories to include
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 --image string --version string --user string build --config file:path --tag string --arch string
func (m *myModule) example(image string, version string, user string, config *dagger.File, tag string, arch string) *dagger.ApkoBuild  {
	return dag.
			Apko(image, version, user).
			Build(config, tag, arch)
}
@function
def example(image: str, version: str, user: str, config: dagger.File, tag: str, arch: str) -> dagger.ApkoBuild:
	return (
		dag.apko(image, version, user)
		.build(config, tag, arch)
	)
@func()
example(image: string, version: string, user: string, config: File, tag: string, arch: string): ApkoBuild {
	return dag
		.apko(image, version, user)
		.build(config, tag, arch)
}

container() 🔗

Returns apko container

Return Type
Container !
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 --image string --version string --user string container
func (m *myModule) example(image string, version string, user string) *dagger.Container  {
	return dag.
			Apko(image, version, user).
			Container()
}
@function
def example(image: str, version: str, user: str, ) -> dagger.Container:
	return (
		dag.apko(image, version, user)
		.container()
	)
@func()
example(image: string, version: string, user: string, ): Container {
	return dag
		.apko(image, version, user)
		.container()
}

publish() 🔗

Publish an image using Apko

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
contextDirectory -Working dir
configFile !-Config file
tag[String ! ] !-Image tags
sbomBoolean !truegenerate an SBOM
archString !""Architectures to build for
localBoolean !falsePublish image just to local Docker daemon
keyringAppendFile nullPath to extra keys to include in the keyring
repositoryAppendDirectory nullPath to extra repositories to include
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 --image string --version string --user string publish --config file:path --tag string1 --tag string2 --sbom boolean --arch string --local boolean
func (m *myModule) example(image string, version string, user string, config *dagger.File, tag []string, sbom bool, arch string, local bool) *dagger.ApkoImage  {
	return dag.
			Apko(image, version, user).
			Publish(config, tag, sbom, arch, local)
}
@function
def example(image: str, version: str, user: str, config: dagger.File, tag: List[str], sbom: bool, arch: str, local: bool) -> dagger.ApkoImage:
	return (
		dag.apko(image, version, user)
		.publish(config, tag, sbom, arch, local)
	)
@func()
example(image: string, version: string, user: string, config: File, tag: string[], sbom: boolean, arch: string, local: boolean): ApkoImage {
	return dag
		.apko(image, version, user)
		.publish(config, tag, sbom, arch, local)
}

withRegistryAuth() 🔗

Authenticates with registry

Return Type
Apko !
Arguments
NameTypeDefault ValueDescription
usernameString !-Registry username
secretSecret !-Registry password
addressString !"docker.io"Registry host
Example
dagger -m github.com/opopops/daggerverse/apko@da1fc9b1eb454de426830a4c59eeb433c4c53e4a call \
 --image string --version string --user string with-registry-auth --username string --secret env:MYSECRET --address string
func (m *myModule) example(image string, version string, user string, username string, secret *dagger.Secret, address string) *dagger.Apko  {
	return dag.
			Apko(image, version, user).
			WithRegistryAuth(username, secret, address)
}
@function
def example(image: str, version: str, user: str, username: str, secret: dagger.Secret, address: str) -> dagger.Apko:
	return (
		dag.apko(image, version, user)
		.with_registry_auth(username, secret, address)
	)
@func()
example(image: string, version: string, user: string, username: string, secret: Secret, address: string): Apko {
	return dag
		.apko(image, version, user)
		.withRegistryAuth(username, secret, address)
}