Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 2.1 KB

README.md

File metadata and controls

71 lines (51 loc) · 2.1 KB

Supabase Pipeline

fluentci pipeline deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for deploying your application to Supabase Edge Functions.

🚀 Usage

Run the following command:

fluentci run supabase_pipeline

🧩 Dagger Module

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

🛠️ Environment Variables

Variable Description
SUPABASE_ACCESS_TOKEN Your Supabase Access Token
PROJECT_ID Your Supabase Project ID

✨ Jobs

Job Description
deploy Deploy functions to Supabase Edge Functions
deploy(
  src: Directory | string,
  token: Secret | string,
  projectId: string
): Promise<string>

👨‍💻 Programmatic usage

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")!
);