A ready-to-use CI/CD Pipeline for deploying your application to Supabase Edge Functions.
Run the following command:
fluentci run supabase_pipeline
Use as a Dagger Module:
dagger install github.com/fluent-ci-templates/supabase-pipeline@main
Call a function from the module:
dagger -m github.com/fluent-ci-templates/supabase-pipeline@main call \
deploy --src . \
--token env:SUPABASE_ACCESS_TOKEN \
--projectId $PROJECT_ID
Variable | Description |
---|---|
SUPABASE_ACCESS_TOKEN | Your Supabase Access Token |
PROJECT_ID | Your Supabase Project ID |
Job | Description |
---|---|
deploy | Deploy functions to Supabase Edge Functions |
deploy(
src: Directory | string,
token: Secret | string,
projectId: string
): Promise<string>
You can also use this pipeline programmatically:
import { deploy } from "jsr:@fluentci/supabase";
await deploy(
".",
Deno.env.get("SUPABASE_ACCESS_TOKEN")!,
Deno.env.get("PROJECT_ID")!
);