Dagger
Search

pipelines

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/riftonix/daggerverse/modules/pipelines@57adafd6985dee9a7e827420b04dba65ddb03b9d

Entrypoint

Return Type
Pipelines !
Example
dagger -m github.com/riftonix/daggerverse/modules/pipelines@57adafd6985dee9a7e827420b04dba65ddb03b9d call \
func (m *MyModule) Example() *dagger.Pipelines  {
	return dag.
			Pipelines()
}
@function
def example() -> dagger.Pipelines:
	return (
		dag.pipelines()
	)
@func()
example(): Pipelines {
	return dag
		.pipelines()
}

Types

Pipelines 🔗

helmPublish() 🔗

Package and push helm chart via local helm module

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Helm chart directory

ociUrlString !-

Destination OCI registry URL without chart name

versionString !-

Chart semver to publish

appVersionString null

Optional appVersion override

usernameString null

Registry username for login

passwordSecret null

Registry password

insecureBoolean false

Allow plain http pushes

Example
dagger -m github.com/riftonix/daggerverse/modules/pipelines@57adafd6985dee9a7e827420b04dba65ddb03b9d call \
 helm-publish --source DIR_PATH --oci-url string --version string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, ociUrl string, version string) string  {
	return dag.
			Pipelines().
			HelmPublish(ctx, source, ociUrl, version)
}
@function
async def example(source: dagger.Directory, oci_url: str, version: str) -> str:
	return await (
		dag.pipelines()
		.helm_publish(source, oci_url, version)
	)
@func()
async example(source: Directory, ociUrl: string, version: string): Promise<string> {
	return dag
		.pipelines()
		.helmPublish(source, ociUrl, version)
}

helmVerify() 🔗

Run Helm lint and template via local helm module

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Helm chart directory

valuesFile null

Optional values.yaml file

releaseNameString !"ci-release"

Helm release name for templating

Example
dagger -m github.com/riftonix/daggerverse/modules/pipelines@57adafd6985dee9a7e827420b04dba65ddb03b9d call \
 helm-verify --source DIR_PATH --release-name string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, releaseName string) string  {
	return dag.
			Pipelines().
			HelmVerify(ctx, source, releaseName)
}
@function
async def example(source: dagger.Directory, release_name: str) -> str:
	return await (
		dag.pipelines()
		.helm_verify(source, release_name)
	)
@func()
async example(source: Directory, releaseName: string): Promise<string> {
	return dag
		.pipelines()
		.helmVerify(source, releaseName)
}

helmVerifyChangedCharts() 🔗

Verify changed charts/libs and optionally publish feature versions

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Repository root directory

targetBranchString !"master"

Target branch or ref to diff against

chartsPathString null

Charts directory (relative to repo root)

libsPathString null

Libraries directory (relative to repo root)

valuesFile null

Optional values.yaml file

releaseNameString !"ci-release"

Helm release name for templating

Example
dagger -m github.com/riftonix/daggerverse/modules/pipelines@57adafd6985dee9a7e827420b04dba65ddb03b9d call \
 helm-verify-changed-charts --source DIR_PATH --target-branch string --release-name string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, targetBranch string, releaseName string) []string  {
	return dag.
			Pipelines().
			HelmVerifyChangedCharts(ctx, source, targetBranch, releaseName)
}
@function
async def example(source: dagger.Directory, target_branch: str, release_name: str) -> List[str]:
	return await (
		dag.pipelines()
		.helm_verify_changed_charts(source, target_branch, release_name)
	)
@func()
async example(source: Directory, targetBranch: string, releaseName: string): Promise<string[]> {
	return dag
		.pipelines()
		.helmVerifyChangedCharts(source, targetBranch, releaseName)
}