Skip to content

A ready-to-use CI/CD Pipeline for Bazel projects.

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/bazel-pipeline

Repository files navigation

Bazel Pipeline

fluentci pipeline deno compatibility dagger-min-version

A ready-to-use Pipeline for Bazel projects.

🚀 Usage

Run the following command in your project :

fluentci run bazel_pipeline

Or, if you want to use it as a template :

fluentci init -t bazel

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

fluentci run .

Dagger Module

Use as a Dagger Module:

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

Environment variables

Variable Description
USE_BAZEL_VERSION The version of Bazel to use. Defaults to 6.3.2

Jobs

Job Description
build Build project
test Run tests
build(
  src: Directory | string,
  version?: string
): Promise<Directory | string>

test(
  src: Directory | string,
  version?: string
): Promise<string>

Programmatic usage

You can also use this pipeline programmatically :

import { test, build } from "jsr:@fluentci/bazel";

await test(".");
await build(".");