Dagger
Search

bazel

No long description provided.

Installation

dagger install github.com/fluent-ci-templates/bazel-pipeline@v0.6.0

Entrypoint

Return Type
Bazel
Example
func (m *myModule) example() *Bazel  {
	return dag.
			Bazel()
}
@function
def example() -> dag.Bazel:
	return (
		dag.bazel()
	)
@func()
example(): Bazel {
	return dag
		.bazel()
}

Types

Bazel 🔗

build() 🔗

Build the project

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-source directory
versionString -bazel version to use
Example
func (m *myModule) example(src *Directory) *Directory  {
	return dag.
			Bazel().
			Build(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
	return (
		dag.bazel()
		.build(src)
	)
@func()
example(src: Directory): Directory {
	return dag
		.bazel()
		.build(src)
}

test() 🔗

Run tests

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-source directory
versionString -bazel version to use
Example
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Bazel().
			Test(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.bazel()
		.test(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.bazel()
		.test(src)
}