bazel
No long description provided.
Installation
dagger install github.com/fluent-ci-templates/bazel-pipeline@v0.6.0
Entrypoint
Return Type
Bazel
Example
dagger -m github.com/fluent-ci-templates/bazel-pipeline@984f459f1a3ac860d1965b85131ae4f0f25df064 call \
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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | source directory |
version | String | - | bazel version to use |
Example
dagger -m github.com/fluent-ci-templates/bazel-pipeline@984f459f1a3ac860d1965b85131ae4f0f25df064 call \
build --src DIR_PATH
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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | source directory |
version | String | - | bazel version to use |
Example
dagger -m github.com/fluent-ci-templates/bazel-pipeline@984f459f1a3ac860d1965b85131ae4f0f25df064 call \
test --src DIR_PATH
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)
}