dagger-cicd
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/elkouhen/dagger-cicd@b1f073626d0d4411e79d7fea738f8ff5a3f91043
Entrypoint
Return Type
DaggerCicd !
Example
dagger -m github.com/elkouhen/dagger-cicd@b1f073626d0d4411e79d7fea738f8ff5a3f91043 call \
func (m *MyModule) Example() *dagger.DaggerCicd {
return dag.
DaggerCicd()
}
@function
def example() -> dagger.DaggerCicd:
return (
dag.dagger_cicd()
)
@func()
example(): DaggerCicd {
return dag
.daggerCicd()
}
Types
DaggerCicd 🔗
build() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/elkouhen/dagger-cicd@b1f073626d0d4411e79d7fea738f8ff5a3f91043 call \
build --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
DaggerCicd().
Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.dagger_cicd()
.build(source)
)
@func()
example(source: Directory): Container {
return dag
.daggerCicd()
.build(source)
}
buildImage() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/elkouhen/dagger-cicd@b1f073626d0d4411e79d7fea738f8ff5a3f91043 call \
build-image --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
DaggerCicd().
BuildImage(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.dagger_cicd()
.build_image(source)
)
@func()
example(source: Directory): Container {
return dag
.daggerCicd()
.buildImage(source)
}
run() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
Example
dagger -m github.com/elkouhen/dagger-cicd@b1f073626d0d4411e79d7fea738f8ff5a3f91043 call \
run --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
DaggerCicd().
Run(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.dagger_cicd()
.run(source)
)
@func()
example(source: Directory): Container {
return dag
.daggerCicd()
.run(source)
}