Skip to content

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

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/supabase-pipeline

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages