Skip to content

A ready-to-use CI/CD Pipeline for managing your database migrations with Drizzle Kit

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/drizzlekit-pipeline

Repository files navigation

Drizzlekit Pipeline

fluentci pipeline deno compatibility dagger-min-version

A ready-to-use CI/CD Pipeline for managing your database migrations with Drizzle Kit

🚀 Usage

Run the following command in your project:

fluentci run drizzlekit_pipeline

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

fluentci init -t drizzlekit

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/drizzlekit-pipeline

Environment variables

Variable Description
DATABASE_URL The database connection string
TURSO_AUTH_TOKEN The Turso Auth token, required if you are using Turso

Jobs

Job Description
push Apply schema changes
push(
  src: string | Directory | undefined = ".",
  databaseUrl: string | Secret
): Promise<string>

Programmatic usage

You can also use this pipeline programmatically:

import { push } from "jsr:@fluentci/drizzlekit";

await push();