A ready-to-use CI/CD Pipeline for managing your database migrations with Drizzle Kit
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 .
Use as a Dagger module:
dagger mod install github.com/fluent-ci-templates/drizzlekit-pipeline@mod
Variable | Description |
---|---|
DATABASE_URL | The database connection string |
TURSO_AUTH_TOKEN | The Turso Auth token, required if you are using Turso |
Job | Description |
---|---|
push | Apply schema changes |
push(
src: string | Directory | undefined = ".",
databaseUrl: string | Secret
): Promise<string>
You can also use this pipeline programmatically:
import { push } from "https://pkg.fluentci.io/drizzlekit_pipeline@v0.7.3/mod.ts";
await push();