Dagger
Search

ci

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/dario-mr/ci-pipelines@3ad171be17971ac9b55a68bde3ad63b392389489

Entrypoint

Return Type
Ci !
Example
dagger -m github.com/dario-mr/ci-pipelines@3ad171be17971ac9b55a68bde3ad63b392389489 call \
func (m *MyModule) Example() *dagger.Ci  {
	return dag.
			Ci()
}
@function
def example() -> dagger.Ci:
	return (
		dag.ci()
	)
@func()
example(): Ci {
	return dag
		.ci()
}

Types

Ci 🔗

buildAndPush() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-A directory.
dockerUsernameString !-No description provided
dockerPasswordSecret !-A reference to a secret value, which can be handled more safely than the value itself.
imageNameString !-No description provided
withRedisBoolean !falseNo description provided
Example
dagger -m github.com/dario-mr/ci-pipelines@3ad171be17971ac9b55a68bde3ad63b392389489 call \
 build-and-push --source DIR_PATH --docker-username string --docker-password env:MYSECRET --image-name string --with-redis boolean
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, dockerUsername string, dockerPassword *dagger.Secret, imageName string, withRedis bool) string  {
	return dag.
			Ci().
			BuildAndPush(ctx, source, dockerUsername, dockerPassword, imageName, withRedis)
}
@function
async def example(source: dagger.Directory, docker_username: str, docker_password: dagger.Secret, image_name: str, with_redis: bool) -> str:
	return await (
		dag.ci()
		.build_and_push(source, docker_username, docker_password, image_name, with_redis)
	)
@func()
async example(source: Directory, dockerUsername: string, dockerPassword: Secret, imageName: string, withRedis: boolean): Promise<string> {
	return dag
		.ci()
		.buildAndPush(source, dockerUsername, dockerPassword, imageName, withRedis)
}

coverageMarkdown() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-A directory.
baseSourceDirectory nullNo description provided
changedFilesString !""No description provided
withRedisBoolean !falseNo description provided
Example
dagger -m github.com/dario-mr/ci-pipelines@3ad171be17971ac9b55a68bde3ad63b392389489 call \
 coverage-markdown --source DIR_PATH --changed-files string --with-redis boolean
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, changedFiles string, withRedis bool) string  {
	return dag.
			Ci().
			CoverageMarkdown(ctx, source, changedFiles, withRedis)
}
@function
async def example(source: dagger.Directory, changed_files: str, with_redis: bool) -> str:
	return await (
		dag.ci()
		.coverage_markdown(source, changed_files, with_redis)
	)
@func()
async example(source: Directory, changedFiles: string, withRedis: boolean): Promise<string> {
	return dag
		.ci()
		.coverageMarkdown(source, changedFiles, withRedis)
}

test() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-A directory.
withRedisBoolean !falseNo description provided
Example
dagger -m github.com/dario-mr/ci-pipelines@3ad171be17971ac9b55a68bde3ad63b392389489 call \
 test --source DIR_PATH --with-redis boolean
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, withRedis bool) string  {
	return dag.
			Ci().
			Test(ctx, source, withRedis)
}
@function
async def example(source: dagger.Directory, with_redis: bool) -> str:
	return await (
		dag.ci()
		.test(source, with_redis)
	)
@func()
async example(source: Directory, withRedis: boolean): Promise<string> {
	return dag
		.ci()
		.test(source, withRedis)
}