Dagger
Search

dagger-cicd

This module has been generated via dagger init and serves as a reference to
basic 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@7e4efc983fd2af2fc9cd93573ed7689920630878

Entrypoint

Return Type
DaggerCicd !
Example
dagger -m github.com/elkouhen/dagger-cicd@7e4efc983fd2af2fc9cd93573ed7689920630878 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
NameTypeDefault ValueDescription
sourceDirectory !-A directory.
Example
dagger -m github.com/elkouhen/dagger-cicd@7e4efc983fd2af2fc9cd93573ed7689920630878 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)
}

run() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceCodeDirectory !-A directory.
sourceSqlFile !-A file.
Example
dagger -m github.com/elkouhen/dagger-cicd@7e4efc983fd2af2fc9cd93573ed7689920630878 call \
 run --source-code DIR_PATH --source-sql file:path
func (m *MyModule) Example(ctx context.Context, sourceCode *dagger.Directory, sourceSql *dagger.File) string  {
	return dag.
			DaggerCicd().
			Run(ctx, sourceCode, sourceSql)
}
@function
async def example(source_code: dagger.Directory, source_sql: dagger.File) -> str:
	return await (
		dag.dagger_cicd()
		.run(source_code, source_sql)
	)
@func()
async example(sourceCode: Directory, sourceSql: File): Promise<string> {
	return dag
		.daggerCicd()
		.run(sourceCode, sourceSql)
}

startDb() 🔗

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
sourceSqlFile !-A file.
Example
dagger -m github.com/elkouhen/dagger-cicd@7e4efc983fd2af2fc9cd93573ed7689920630878 call \
 start-db --source-sql file:path
func (m *MyModule) Example(sourceSql *dagger.File) *dagger.Service  {
	return dag.
			DaggerCicd().
			StartDb(sourceSql)
}
@function
def example(source_sql: dagger.File) -> dagger.Service:
	return (
		dag.dagger_cicd()
		.start_db(source_sql)
	)
@func()
example(sourceSql: File): Service {
	return dag
		.daggerCicd()
		.startDb(sourceSql)
}