ci
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/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4abEntrypoint
Return Type
Ci ! Example
dagger -m github.com/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4ab 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 🔗
buildAndPushJava() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| dockerUsername | String ! | - | No description provided |
| dockerPassword | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
| imageRepo | String ! | - | No description provided |
| eventName | String ! | - | No description provided |
| platforms | String ! | - | No description provided |
| prNumber | Integer ! | 0 | No description provided |
| withRedis | Boolean ! | false | No description provided |
| withPostgres | Boolean ! | false | No description provided |
Example
dagger -m github.com/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4ab call \
build-and-push-java --source DIR_PATH --docker-username string --docker-password env:MYSECRET --image-repo string --event-name string --platforms string --pr-number integer --with-redis boolean --with-postgres booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, dockerUsername string, dockerPassword *dagger.Secret, imageRepo string, eventName string, platforms string, prNumber int, withRedis bool, withPostgres bool) string {
return dag.
Ci().
BuildAndPushJava(ctx, source, dockerUsername, dockerPassword, imageRepo, eventName, platforms, prNumber, withRedis, withPostgres)
}@function
async def example(source: dagger.Directory, docker_username: str, docker_password: dagger.Secret, image_repo: str, event_name: str, platforms: str, pr_number: int, with_redis: bool, with_postgres: bool) -> str:
return await (
dag.ci()
.build_and_push_java(source, docker_username, docker_password, image_repo, event_name, platforms, pr_number, with_redis, with_postgres)
)@func()
async example(source: Directory, dockerUsername: string, dockerPassword: Secret, imageRepo: string, eventName: string, platforms: string, prNumber: number, withRedis: boolean, withPostgres: boolean): Promise<string> {
return dag
.ci()
.buildAndPushJava(source, dockerUsername, dockerPassword, imageRepo, eventName, platforms, prNumber, withRedis, withPostgres)
}coverageMarkdown() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| baseSource | Directory | null | No description provided |
| changedFiles | String ! | "" | No description provided |
| withRedis | Boolean ! | false | No description provided |
| withPostgres | Boolean ! | false | No description provided |
Example
dagger -m github.com/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4ab call \
coverage-markdown --source DIR_PATH --changed-files string --with-redis boolean --with-postgres booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, changedFiles string, withRedis bool, withPostgres bool) string {
return dag.
Ci().
CoverageMarkdown(ctx, source, changedFiles, withRedis, withPostgres)
}@function
async def example(source: dagger.Directory, changed_files: str, with_redis: bool, with_postgres: bool) -> str:
return await (
dag.ci()
.coverage_markdown(source, changed_files, with_redis, with_postgres)
)@func()
async example(source: Directory, changedFiles: string, withRedis: boolean, withPostgres: boolean): Promise<string> {
return dag
.ci()
.coverageMarkdown(source, changedFiles, withRedis, withPostgres)
}nodeBuild() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
Example
dagger -m github.com/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4ab call \
node-build --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Ci().
NodeBuild(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.ci()
.node_build(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.ci()
.nodeBuild(source)
}nodeBuildAndPush() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| dockerUsername | String ! | - | No description provided |
| dockerPassword | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
| imageName | String ! | - | No description provided |
| platforms | String ! | - | No description provided |
Example
dagger -m github.com/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4ab call \
node-build-and-push --source DIR_PATH --docker-username string --docker-password env:MYSECRET --image-name string --platforms stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, dockerUsername string, dockerPassword *dagger.Secret, imageName string, platforms string) string {
return dag.
Ci().
NodeBuildAndPush(ctx, source, dockerUsername, dockerPassword, imageName, platforms)
}@function
async def example(source: dagger.Directory, docker_username: str, docker_password: dagger.Secret, image_name: str, platforms: str) -> str:
return await (
dag.ci()
.node_build_and_push(source, docker_username, docker_password, image_name, platforms)
)@func()
async example(source: Directory, dockerUsername: string, dockerPassword: Secret, imageName: string, platforms: string): Promise<string> {
return dag
.ci()
.nodeBuildAndPush(source, dockerUsername, dockerPassword, imageName, platforms)
}test() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| withRedis | Boolean ! | false | No description provided |
| withPostgres | Boolean ! | false | No description provided |
Example
dagger -m github.com/dario-mr/ci-pipelines@f65bbfb29255cce5d5536cb113dcd16449e4c4ab call \
test --source DIR_PATH --with-redis boolean --with-postgres booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, withRedis bool, withPostgres bool) string {
return dag.
Ci().
Test(ctx, source, withRedis, withPostgres)
}@function
async def example(source: dagger.Directory, with_redis: bool, with_postgres: bool) -> str:
return await (
dag.ci()
.test(source, with_redis, with_postgres)
)@func()
async example(source: Directory, withRedis: boolean, withPostgres: boolean): Promise<string> {
return dag
.ci()
.test(source, withRedis, withPostgres)
}