Skip to main content

🧩 A ready to use CI/CD Pipeline for deploying functions to Supabase

Works with
This package works with Bun
This package works with Node.js
This package works with Deno
JSR Score
76%
Published
2 months ago (0.5.1)

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

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @fluentci/supabase

Import symbol

import * as mod from "@fluentci/supabase";

Add Package

npx jsr add @fluentci/supabase

Import symbol

import * as mod from "@fluentci/supabase";

Add Package

yarn dlx jsr add @fluentci/supabase

Import symbol

import * as mod from "@fluentci/supabase";

Add Package

pnpm dlx jsr add @fluentci/supabase

Import symbol

import * as mod from "@fluentci/supabase";

Add Package

bunx jsr add @fluentci/supabase

Import symbol

import * as mod from "@fluentci/supabase";