Dagger
Search

apko

Builds containers using the Apko CLI

Installation

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

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
apkoContainerContainer nullNo description provided
Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 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@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 container
func (m *MyModule) Example(config *dagger.File, tag []string, sbom bool, local bool) *dagger.Container  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			Container()
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, local: bool) -> dagger.Container:
	return (
		dag.apko()
		.publish(config, tag, sbom, local)
		.container()
	)
@func()
example(config: File, tag: string[], sbom: boolean, local: boolean): Container {
	return dag
		.apko()
		.publish(config, tag, sbom, local)
		.container()
}

copy() 🔗

Copy image to another registry

Return Type
String !
Arguments
NameTypeDefault ValueDescription
targetString !-

Target

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

digest() 🔗

Retrieves the image digest

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

platforms() 🔗

Retrieves image platforms

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

ref() 🔗

Retrieves the fully qualified image ref

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

registry() 🔗

Retrieves the registry host from image address

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

sbomDir() 🔗

Returns the SBOM directory

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

scan() 🔗

Scan image using Grype

Return Type
File !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !true

Set to false to avoid failing based on severity-cutoff

outputFormatString !"sarif"

Report output formatter

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 scan --fail boolean --output-format string
func (m *MyModule) Example(config *dagger.File, tag []string, sbom bool, local bool, fail bool, outputFormat string) *dagger.File  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			Scan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, local: bool, fail: bool, output_format: str) -> dagger.File:
	return (
		dag.apko()
		.publish(config, tag, sbom, local)
		.scan(fail, output_format)
	)
@func()
example(config: File, tag: string[], sbom: boolean, local: boolean, fail: boolean, outputFormat: string): File {
	return dag
		.apko()
		.publish(config, tag, sbom, 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@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 sign
func (m *MyModule) Example(ctx context.Context, config *dagger.File, tag []string, sbom bool, local bool) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			Sign(ctx)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, local: bool) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, local)
		.sign()
	)
@func()
async example(config: File, tag: string[], sbom: boolean, local: boolean): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, local)
		.sign()
}

tag() 🔗

Tag image

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tagString !-

Tag

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 tag --tag string
func (m *MyModule) Example(ctx context.Context, config *dagger.File, tag []string, sbom bool, local bool, tag1 string) string  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			Tag(ctx, tag1)
}
@function
async def example(config: dagger.File, tag: List[str], sbom: bool, local: bool, tag1: str) -> str:
	return await (
		dag.apko()
		.publish(config, tag, sbom, local)
		.tag(tag1)
	)
@func()
async example(config: File, tag: string[], sbom: boolean, local: boolean, tag1: string): Promise<string> {
	return dag
		.apko()
		.publish(config, tag, sbom, 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@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 with-copy --target string
func (m *MyModule) Example(config *dagger.File, tag []string, sbom bool, local bool, target string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			WithCopy(target)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, local: bool, target: str) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, local)
		.with_copy(target)
	)
@func()
example(config: File, tag: string[], sbom: boolean, local: boolean, target: string): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, local)
		.withCopy(target)
}

withScan() 🔗

Scan image using Grype (for chaining)

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !true

Set to false to avoid failing based on severity-cutoff

outputFormatString !"sarif"

Report output formatter

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 with-scan --fail boolean --output-format string
func (m *MyModule) Example(config *dagger.File, tag []string, sbom bool, local bool, fail bool, outputFormat string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			WithScan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, local: bool, fail: bool, output_format: str) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, local)
		.with_scan(fail, output_format)
	)
@func()
example(config: File, tag: string[], sbom: boolean, local: boolean, fail: boolean, outputFormat: string): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, 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@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 with-sign
func (m *MyModule) Example(config *dagger.File, tag []string, sbom bool, local bool) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			WithSign()
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, local: bool) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, local)
		.with_sign()
	)
@func()
example(config: File, tag: string[], sbom: boolean, local: boolean): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, local)
		.withSign()
}

withTag() 🔗

Tag image (for chaining)

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
tagString !-

Tag

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean \
 with-tag --tag string
func (m *MyModule) Example(config *dagger.File, tag []string, sbom bool, local bool, tag1 string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Publish(config, tag, sbom, local).
			WithTag(tag1)
}
@function
def example(config: dagger.File, tag: List[str], sbom: bool, local: bool, tag1: str) -> dagger.ApkoImage:
	return (
		dag.apko()
		.publish(config, tag, sbom, local)
		.with_tag(tag1)
	)
@func()
example(config: File, tag: string[], sbom: boolean, local: boolean, tag1: string): ApkoImage {
	return dag
		.apko()
		.publish(config, tag, sbom, local)
		.withTag(tag1)
}

Build 🔗

Apko Build module

asTarball() 🔗

Returns the image tarball

Return Type
File !
Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 build --config file:path --tag string \
 as-tarball
func (m *MyModule) Example(config *dagger.File, tag string) *dagger.File  {
	return dag.
			Apko().
			Build(config, tag).
			AsTarball()
}
@function
def example(config: dagger.File, tag: str) -> dagger.File:
	return (
		dag.apko()
		.build(config, tag)
		.as_tarball()
	)
@func()
example(config: File, tag: string): File {
	return dag
		.apko()
		.build(config, tag)
		.asTarball()
}

buildDir() 🔗

Returns the build directory

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

container() 🔗

Returns the build container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar nullNo description provided
tagString nullNo description provided
Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 build --config file:path --tag string \
 container
func (m *MyModule) Example(config *dagger.File, tag string) *dagger.Container  {
	return dag.
			Apko().
			Build(config, tag).
			Container()
}
@function
def example(config: dagger.File, tag: str) -> dagger.Container:
	return (
		dag.apko()
		.build(config, tag)
		.container()
	)
@func()
example(config: File, tag: string): Container {
	return dag
		.apko()
		.build(config, tag)
		.container()
}

publish() 🔗

Publish multi-arch image

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
tag[String ! ] ![]

Additional tags

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 build --config file:path --tag string \
 publish --tag string1 --tag string2
func (m *MyModule) Example(config *dagger.File, tag string, tag1 []string) *dagger.ApkoImage  {
	return dag.
			Apko().
			Build(config, tag).
			Publish(tag1)
}
@function
def example(config: dagger.File, tag: str, tag1: List[str]) -> dagger.ApkoImage:
	return (
		dag.apko()
		.build(config, tag)
		.publish(tag1)
	)
@func()
example(config: File, tag: string, tag1: string[]): ApkoImage {
	return dag
		.apko()
		.build(config, tag)
		.publish(tag1)
}

sbomDir() 🔗

Returns the SBOM directory

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

scan() 🔗

Scan build result using Grype

Return Type
File !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !true

Set to false to avoid failing based on severity-cutoff

outputFormatString !"sarif"

Report output formatter

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 build --config file:path --tag string \
 scan --fail boolean --output-format string
func (m *MyModule) Example(config *dagger.File, tag string, fail bool, outputFormat string) *dagger.File  {
	return dag.
			Apko().
			Build(config, tag).
			Scan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: str, fail: bool, output_format: str) -> dagger.File:
	return (
		dag.apko()
		.build(config, tag)
		.scan(fail, output_format)
	)
@func()
example(config: File, tag: string, fail: boolean, outputFormat: string): File {
	return dag
		.apko()
		.build(config, tag)
		.scan(fail, outputFormat)
}

withRegistryAuth() 🔗

Authenticates with registry

Return Type
Build !
Arguments
NameTypeDefault ValueDescription
usernameString !-

Registry username

secretSecret !-

Registry password

addressString !"docker.io"

Registry host

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 build --config file:path --tag string \
 with-registry-auth --username string --secret env:MYSECRET --address string
func (m *MyModule) Example(config *dagger.File, tag string, username string, secret *dagger.Secret, address string) *dagger.ApkoBuild  {
	return dag.
			Apko().
			Build(config, tag).
			WithRegistryAuth(username, secret, address)
}
@function
def example(config: dagger.File, tag: str, username: str, secret: dagger.Secret, address: str) -> dagger.ApkoBuild:
	return (
		dag.apko()
		.build(config, tag)
		.with_registry_auth(username, secret, address)
	)
@func()
example(config: File, tag: string, username: string, secret: Secret, address: string): ApkoBuild {
	return dag
		.apko()
		.build(config, tag)
		.withRegistryAuth(username, secret, address)
}

withScan() 🔗

Scan build result using Grype (for chaining)

Return Type
Build !
Arguments
NameTypeDefault ValueDescription
severityCutoffString nullNo description provided
failBoolean !true

Set to false to avoid failing based on severity-cutoff

outputFormatString !"sarif"

Report output formatter

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 build --config file:path --tag string \
 with-scan --fail boolean --output-format string
func (m *MyModule) Example(config *dagger.File, tag string, fail bool, outputFormat string) *dagger.ApkoBuild  {
	return dag.
			Apko().
			Build(config, tag).
			WithScan(fail, outputFormat)
}
@function
def example(config: dagger.File, tag: str, fail: bool, output_format: str) -> dagger.ApkoBuild:
	return (
		dag.apko()
		.build(config, tag)
		.with_scan(fail, output_format)
	)
@func()
example(config: File, tag: string, fail: boolean, outputFormat: string): ApkoBuild {
	return dag
		.apko()
		.build(config, tag)
		.withScan(fail, outputFormat)
}

Apko 🔗

Apko module

container() 🔗

Returns apko container

Return Type
Container !
Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 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()
}

build() 🔗

Build an image using Apko

Return Type
Build !
Arguments
NameTypeDefault ValueDescription
contextDirectory -

Working dir

configFile !-

Config file

tagString !-

Image tag

arch[Scalar ! ] null

Platforms

keyringAppendFile null

Path to extra keys to include in the keyring

repositoryAppendDirectory null

Path to extra repositories to include

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 --image string --version string --user string build --config file:path --tag string
func (m *MyModule) Example(image string, version string, user string, config *dagger.File, tag string) *dagger.ApkoBuild  {
	return dag.
			Apko(image, version, user).
			Build(config, tag)
}
@function
def example(image: str, version: str, user: str, config: dagger.File, tag: str) -> dagger.ApkoBuild:
	return (
		dag.apko(image, version, user)
		.build(config, tag)
	)
@func()
example(image: string, version: string, user: string, config: File, tag: string): ApkoBuild {
	return dag
		.apko(image, version, user)
		.build(config, tag)
}

publish() 🔗

Publish an image using Apko

Return Type
Image !
Arguments
NameTypeDefault ValueDescription
contextDirectory -

Working dir

configFile !-

Config file

tag[String ! ] !-

Image tags

sbomBoolean !true

generate an SBOM

arch[Scalar ! ] null

Platforms

localBoolean !false

Publish image just to local Docker daemon

keyringAppendFile null

Path to extra keys to include in the keyring

repositoryAppendDirectory null

Path to extra repositories to include

Example
dagger -m github.com/opopops/daggerverse/apko@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 call \
 --image string --version string --user string publish --config file:path --tag string1 --tag string2 --sbom boolean --local boolean
func (m *MyModule) Example(image string, version string, user string, config *dagger.File, tag []string, sbom bool, local bool) *dagger.ApkoImage  {
	return dag.
			Apko(image, version, user).
			Publish(config, tag, sbom, local)
}
@function
def example(image: str, version: str, user: str, config: dagger.File, tag: List[str], sbom: bool, local: bool) -> dagger.ApkoImage:
	return (
		dag.apko(image, version, user)
		.publish(config, tag, sbom, local)
	)
@func()
example(image: string, version: string, user: string, config: File, tag: string[], sbom: boolean, local: boolean): ApkoImage {
	return dag
		.apko(image, version, user)
		.publish(config, tag, sbom, 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@a6f7ead31d20adf1c014e48ff113cb10fdb0d2f8 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)
}