apko
Builds containers using the Apko CLI
Installation
dagger install github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246cEntrypoint
Return Type
Apko !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | String ! | "cgr.dev/chainguard/apko:latest" | Apko image |
| registry | String | "index.docker.io" | No description provided |
| username | String | null | No description provided |
| password | Secret | null | No description provided |
| user | String | "65532" | No description provided |
| container | Container | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image stringfunc (m *MyModule) Example(image string) *dagger.Apko {
return dag.
Apko(image)
}@function
def example(image: str, ) -> dagger.Apko:
return (
dag.apko(image)
)@func()
example(image: string, ): Apko {
return dag
.apko(image)
}Types
Image 🔗
Apko Image module
registryUsername() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
registry-usernamefunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
RegistryUsername(ctx)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str]) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.registry_username()
)@func()
async example(tag: string, context: Directory, image: string[]): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.registryUsername()
}registryPassword() 🔗
Return Type
Secret Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
registry-passwordfunc (m *MyModule) Example(tag string, context *dagger.Directory, image []string) *dagger.Secret {
return dag.
Apko().
Build(tag, context).
Publish(image).
RegistryPassword()
}@function
def example(tag: str, context: dagger.Directory, image: List[str]) -> dagger.Secret:
return (
dag.apko()
.build(tag, context)
.publish(image)
.registry_password()
)@func()
example(tag: string, context: Directory, image: string[]): Secret {
return dag
.apko()
.build(tag, context)
.publish(image)
.registryPassword()
}container() 🔗
Return Type
Container Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
containerfunc (m *MyModule) Example(tag string, context *dagger.Directory, image []string) *dagger.Container {
return dag.
Apko().
Build(tag, context).
Publish(image).
Container()
}@function
def example(tag: str, context: dagger.Directory, image: List[str]) -> dagger.Container:
return (
dag.apko()
.build(tag, context)
.publish(image)
.container()
)@func()
example(tag: string, context: Directory, image: string[]): Container {
return dag
.apko()
.build(tag, context)
.publish(image)
.container()
}platforms() 🔗
Retrieves image platforms
Return Type
[Scalar ! ] ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
platformsfunc (m *MyModule) Example(tag string, context *dagger.Directory, image []string) [] {
return dag.
Apko().
Build(tag, context).
Publish(image).
Platforms()
}@function
def example(tag: str, context: dagger.Directory, image: List[str]) -> List[]:
return (
dag.apko()
.build(tag, context)
.publish(image)
.platforms()
)@func()
example(tag: string, context: Directory, image: string[]): [] {
return dag
.apko()
.build(tag, context)
.publish(image)
.platforms()
}ref() 🔗
Retrieves the fully qualified image ref
Return Type
String ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
reffunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
Ref(ctx)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str]) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.ref()
)@func()
async example(tag: string, context: Directory, image: string[]): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.ref()
}digest() 🔗
Retrieves the image digest
Return Type
String ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
digestfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
Digest(ctx)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str]) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.digest()
)@func()
async example(tag: string, context: Directory, image: string[]): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.digest()
}registry() 🔗
Retrieves the registry host from image address
Return Type
String ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
registryfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
Registry(ctx)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str]) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.registry()
)@func()
async example(tag: string, context: Directory, image: string[]): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.registry()
}tag() 🔗
Tag image
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tag | String ! | - | Tag |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
tag --tag stringfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string, tag1 string) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
Tag(ctx, tag1)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str], tag1: str) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.tag(tag1)
)@func()
async example(tag: string, context: Directory, image: string[], tag1: string): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.tag(tag1)
}withTag() 🔗
Tag image (for chaining)
Return Type
Image !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tag | String ! | - | Tag |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
with-tag --tag stringfunc (m *MyModule) Example(tag string, context *dagger.Directory, image []string, tag1 string) *dagger.ApkoImage {
return dag.
Apko().
Build(tag, context).
Publish(image).
WithTag(tag1)
}@function
def example(tag: str, context: dagger.Directory, image: List[str], tag1: str) -> dagger.ApkoImage:
return (
dag.apko()
.build(tag, context)
.publish(image)
.with_tag(tag1)
)@func()
example(tag: string, context: Directory, image: string[], tag1: string): ApkoImage {
return dag
.apko()
.build(tag, context)
.publish(image)
.withTag(tag1)
}scan() 🔗
Scan image using Grype
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| failOn | String | null | No description provided |
| outputFormat | String ! | "table" | Report output formatter |
| outputFile | String | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
scan --output-format stringfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string, outputFormat string) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
Scan(ctxoutputFormat)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str], output_format: str) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.scan(output_format)
)@func()
async example(tag: string, context: Directory, image: string[], outputFormat: string): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.scan(outputFormat)
}withScan() 🔗
Scan image using Grype (for chaining)
Return Type
Image !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| failOn | String | null | No description provided |
| outputFormat | String ! | "table" | Report output formatter |
| outputFile | String | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
with-scan --output-format stringfunc (m *MyModule) Example(tag string, context *dagger.Directory, image []string, outputFormat string) *dagger.ApkoImage {
return dag.
Apko().
Build(tag, context).
Publish(image).
WithScan(outputFormat)
}@function
def example(tag: str, context: dagger.Directory, image: List[str], output_format: str) -> dagger.ApkoImage:
return (
dag.apko()
.build(tag, context)
.publish(image)
.with_scan(output_format)
)@func()
example(tag: string, context: Directory, image: string[], outputFormat: string): ApkoImage {
return dag
.apko()
.build(tag, context)
.publish(image)
.withScan(outputFormat)
}sign() 🔗
Sign image with Cosign
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| privateKey | Secret ! | - | Cosign private key |
| password | Secret ! | - | Cosign password |
| recursive | Boolean | true | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
sign --private-key env:MYSECRET --password env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, image []string, privateKey *dagger.Secret, password *dagger.Secret) string {
return dag.
Apko().
Build(tag, context).
Publish(image).
Sign(ctx, privateKey, password)
}@function
async def example(tag: str, context: dagger.Directory, image: List[str], private_key: dagger.Secret, password: dagger.Secret) -> str:
return await (
dag.apko()
.build(tag, context)
.publish(image)
.sign(private_key, password)
)@func()
async example(tag: string, context: Directory, image: string[], privateKey: Secret, password: Secret): Promise<string> {
return dag
.apko()
.build(tag, context)
.publish(image)
.sign(privateKey, password)
}withSign() 🔗
Sign image with Cosign (for chaining)
Return Type
Image !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| privateKey | Secret ! | - | Cosign private key |
| password | Secret ! | - | Cosign password |
| recursive | Boolean | true | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2 \
with-sign --private-key env:MYSECRET --password env:MYSECRETfunc (m *MyModule) Example(tag string, context *dagger.Directory, image []string, privateKey *dagger.Secret, password *dagger.Secret) *dagger.ApkoImage {
return dag.
Apko().
Build(tag, context).
Publish(image).
WithSign(privateKey, password)
}@function
def example(tag: str, context: dagger.Directory, image: List[str], private_key: dagger.Secret, password: dagger.Secret) -> dagger.ApkoImage:
return (
dag.apko()
.build(tag, context)
.publish(image)
.with_sign(private_key, password)
)@func()
example(tag: string, context: Directory, image: string[], privateKey: Secret, password: Secret): ApkoImage {
return dag
.apko()
.build(tag, context)
.publish(image)
.withSign(privateKey, password)
}Build 🔗
Apko Build module
image() 🔗
Apko image
Return Type
String ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
imagefunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory) string {
return dag.
Apko().
Build(tag, context).
Image(ctx)
}@function
async def example(tag: str, context: dagger.Directory) -> str:
return await (
dag.apko()
.build(tag, context)
.image()
)@func()
async example(tag: string, context: Directory): Promise<string> {
return dag
.apko()
.build(tag, context)
.image()
}registry() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
registryfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory) string {
return dag.
Apko().
Build(tag, context).
Registry(ctx)
}@function
async def example(tag: str, context: dagger.Directory) -> str:
return await (
dag.apko()
.build(tag, context)
.registry()
)@func()
async example(tag: string, context: Directory): Promise<string> {
return dag
.apko()
.build(tag, context)
.registry()
}registryUsername() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
registry-usernamefunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory) string {
return dag.
Apko().
Build(tag, context).
RegistryUsername(ctx)
}@function
async def example(tag: str, context: dagger.Directory) -> str:
return await (
dag.apko()
.build(tag, context)
.registry_username()
)@func()
async example(tag: string, context: Directory): Promise<string> {
return dag
.apko()
.build(tag, context)
.registryUsername()
}registryPassword() 🔗
Return Type
Secret Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
registry-passwordfunc (m *MyModule) Example(tag string, context *dagger.Directory) *dagger.Secret {
return dag.
Apko().
Build(tag, context).
RegistryPassword()
}@function
def example(tag: str, context: dagger.Directory) -> dagger.Secret:
return (
dag.apko()
.build(tag, context)
.registry_password()
)@func()
example(tag: string, context: Directory): Secret {
return dag
.apko()
.build(tag, context)
.registryPassword()
}user() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
userfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory) string {
return dag.
Apko().
Build(tag, context).
User(ctx)
}@function
async def example(tag: str, context: dagger.Directory) -> str:
return await (
dag.apko()
.build(tag, context)
.user()
)@func()
async example(tag: string, context: Directory): Promise<string> {
return dag
.apko()
.build(tag, context)
.user()
}container() 🔗
Return Type
Container Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
containerfunc (m *MyModule) Example(tag string, context *dagger.Directory) *dagger.Container {
return dag.
Apko().
Build(tag, context).
Container()
}@function
def example(tag: str, context: dagger.Directory) -> dagger.Container:
return (
dag.apko()
.build(tag, context)
.container()
)@func()
example(tag: string, context: Directory): Container {
return dag
.apko()
.build(tag, context)
.container()
}sbom() 🔗
Return
Return Type
Directory ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
sbomfunc (m *MyModule) Example(tag string, context *dagger.Directory) *dagger.Directory {
return dag.
Apko().
Build(tag, context).
Sbom()
}@function
def example(tag: str, context: dagger.Directory) -> dagger.Directory:
return (
dag.apko()
.build(tag, context)
.sbom()
)@func()
example(tag: string, context: Directory): Directory {
return dag
.apko()
.build(tag, context)
.sbom()
}asOci() 🔗
Returns the image OCI layout directory
Return Type
Directory ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
as-ocifunc (m *MyModule) Example(tag string, context *dagger.Directory) *dagger.Directory {
return dag.
Apko().
Build(tag, context).
AsOci()
}@function
def example(tag: str, context: dagger.Directory) -> dagger.Directory:
return (
dag.apko()
.build(tag, context)
.as_oci()
)@func()
example(tag: string, context: Directory): Directory {
return dag
.apko()
.build(tag, context)
.asOci()
}scan() 🔗
Scan build result using Grype
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| failOn | String | null | No description provided |
| outputFormat | String ! | "table" | Report output formatter |
| outputFile | String | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
scan --output-format stringfunc (m *MyModule) Example(ctx context.Context, tag string, context *dagger.Directory, outputFormat string) string {
return dag.
Apko().
Build(tag, context).
Scan(ctxoutputFormat)
}@function
async def example(tag: str, context: dagger.Directory, output_format: str) -> str:
return await (
dag.apko()
.build(tag, context)
.scan(output_format)
)@func()
async example(tag: string, context: Directory, outputFormat: string): Promise<string> {
return dag
.apko()
.build(tag, context)
.scan(outputFormat)
}withScan() 🔗
Scan build result using Grype (for chaining)
Return Type
Build !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| failOn | String | null | No description provided |
| outputFormat | String ! | "table" | Report output formatter |
| outputFile | String | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
with-scan --output-format stringfunc (m *MyModule) Example(tag string, context *dagger.Directory, outputFormat string) *dagger.ApkoBuild {
return dag.
Apko().
Build(tag, context).
WithScan(outputFormat)
}@function
def example(tag: str, context: dagger.Directory, output_format: str) -> dagger.ApkoBuild:
return (
dag.apko()
.build(tag, context)
.with_scan(output_format)
)@func()
example(tag: string, context: Directory, outputFormat: string): ApkoBuild {
return dag
.apko()
.build(tag, context)
.withScan(outputFormat)
}publish() 🔗
Publish multi-arch image
Return Type
Image !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | [String ! ] ! | - | Image tag |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
build --tag string --context DIR_PATH \
publish --image string1 --image string2func (m *MyModule) Example(tag string, context *dagger.Directory, image []string) *dagger.ApkoImage {
return dag.
Apko().
Build(tag, context).
Publish(image)
}@function
def example(tag: str, context: dagger.Directory, image: List[str]) -> dagger.ApkoImage:
return (
dag.apko()
.build(tag, context)
.publish(image)
)@func()
example(tag: string, context: Directory, image: string[]): ApkoImage {
return dag
.apko()
.build(tag, context)
.publish(image)
}Apko 🔗
Apko module
image() 🔗
Apko image
Return Type
String ! Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string imagefunc (m *MyModule) Example(ctx context.Context, image string) string {
return dag.
Apko(image).
Image(ctx)
}@function
async def example(image: str, ) -> str:
return await (
dag.apko(image)
.image()
)@func()
async example(image: string, ): Promise<string> {
return dag
.apko(image)
.image()
}registry() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string registryfunc (m *MyModule) Example(ctx context.Context, image string) string {
return dag.
Apko(image).
Registry(ctx)
}@function
async def example(image: str, ) -> str:
return await (
dag.apko(image)
.registry()
)@func()
async example(image: string, ): Promise<string> {
return dag
.apko(image)
.registry()
}username() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string usernamefunc (m *MyModule) Example(ctx context.Context, image string) string {
return dag.
Apko(image).
Username(ctx)
}@function
async def example(image: str, ) -> str:
return await (
dag.apko(image)
.username()
)@func()
async example(image: string, ): Promise<string> {
return dag
.apko(image)
.username()
}password() 🔗
Return Type
Secret Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string passwordfunc (m *MyModule) Example(image string) *dagger.Secret {
return dag.
Apko(image).
Password()
}@function
def example(image: str, ) -> dagger.Secret:
return (
dag.apko(image)
.password()
)@func()
example(image: string, ): Secret {
return dag
.apko(image)
.password()
}user() 🔗
Return Type
String Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string userfunc (m *MyModule) Example(ctx context.Context, image string) string {
return dag.
Apko(image).
User(ctx)
}@function
async def example(image: str, ) -> str:
return await (
dag.apko(image)
.user()
)@func()
async example(image: string, ): Promise<string> {
return dag
.apko(image)
.user()
}container() 🔗
Return Type
Container Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string containerfunc (m *MyModule) Example(image string) *dagger.Container {
return dag.
Apko(image).
Container()
}@function
def example(image: str, ) -> dagger.Container:
return (
dag.apko(image)
.container()
)@func()
example(image: string, ): Container {
return dag
.apko(image)
.container()
}withRegistryAuth() 🔗
Authenticates with registry
Return Type
Apko !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| address | String | "index.docker.io" | No description provided |
| username | String | null | No description provided |
| secret | Secret | null | No description provided |
| dockerConfig | Directory | null | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string with-registry-authfunc (m *MyModule) Example(image string) *dagger.Apko {
return dag.
Apko(image).
WithRegistryAuth()
}@function
def example(image: str, ) -> dagger.Apko:
return (
dag.apko(image)
.with_registry_auth()
)@func()
example(image: string, ): Apko {
return dag
.apko(image)
.withRegistryAuth()
}build() 🔗
Build an image using Apko
Return Type
Build !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tag | String ! | - | Image tag |
| context | Directory ! | - | Working dir |
| arch | String | - | No description provided |
| config | String | "apko.yaml" | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string build --tag string --context DIR_PATHfunc (m *MyModule) Example(image string, tag string, context *dagger.Directory) *dagger.ApkoBuild {
return dag.
Apko(image).
Build(tag, context)
}@function
def example(image: str, tag: str, context: dagger.Directory) -> dagger.ApkoBuild:
return (
dag.apko(image)
.build(tag, context)
)@func()
example(image: string, tag: string, context: Directory): ApkoBuild {
return dag
.apko(image)
.build(tag, context)
}publish() 🔗
Publish an image using Apko
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tag | String ! | - | Image tag |
| context | Directory ! | - | Working dir |
| arch | String | - | No description provided |
| config | String | "apko.yaml" | No description provided |
Example
dagger -m github.com/opopops/daggerverse/apko@50a6237cf86e74768e554c4b1220e3079c79246c call \
--image string publish --tag string --context DIR_PATHfunc (m *MyModule) Example(image string, tag string, context *dagger.Directory) *dagger.Directory {
return dag.
Apko(image).
Publish(tag, context)
}@function
def example(image: str, tag: str, context: dagger.Directory) -> dagger.Directory:
return (
dag.apko(image)
.publish(tag, context)
)@func()
example(image: string, tag: string, context: Directory): Directory {
return dag
.apko(image)
.publish(tag, context)
}