Dagger
Search

pipeline

No long description provided.

Installation

dagger install gitlab.com/build-core/daggerverse/pipeline@v0.6.0

Entrypoint

Return Type
Pipeline
Example
dagger -m gitlab.com/build-core/daggerverse/pipeline@d37c2fe29e1a6464df15627aaca9f33fe2a5bca0 call \
func (m *MyModule) Example() *dagger.Pipeline  {
	return dag.
			Pipeline()
}
@function
def example() -> dagger.Pipeline:
	return (
		dag.pipeline()
	)
@func()
example(): Pipeline {
	return dag
		.pipeline()
}

Types

Pipeline 🔗

run() 🔗

Run lit le manifest.yaml et publie chaque composant

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-Racine du repo
registryString !"registry.gitlab.com"Registry de destination ex: registry.gitlab.com
imageNamespaceString !-Namespace de l'image ex: mini-pc/apps/todo
usernameString !-Username du registry
passwordSecret !-Password du registry
commitTagString !-Variable CI_COMMIT_TAG — tag git si existant
commitRefSlugString !-Variable CI_COMMIT_REF_SLUG — branche courante
Example
dagger -m gitlab.com/build-core/daggerverse/pipeline@d37c2fe29e1a6464df15627aaca9f33fe2a5bca0 call \
 run --src DIR_PATH --registry string --image-namespace string --username string --password env:MYSECRET --commit-tag string --commit-ref-slug string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, registry string, imageNamespace string, username string, password *dagger.Secret, commitTag string, commitRefSlug string) string  {
	return dag.
			Pipeline().
			Run(ctx, src, registry, imageNamespace, username, password, commitTag, commitRefSlug)
}
@function
async def example(src: dagger.Directory, registry: str, image_namespace: str, username: str, password: dagger.Secret, commit_tag: str, commit_ref_slug: str) -> str:
	return await (
		dag.pipeline()
		.run(src, registry, image_namespace, username, password, commit_tag, commit_ref_slug)
	)
@func()
async example(src: Directory, registry: string, imageNamespace: string, username: string, password: Secret, commitTag: string, commitRefSlug: string): Promise<string> {
	return dag
		.pipeline()
		.run(src, registry, imageNamespace, username, password, commitTag, commitRefSlug)
}