Dagger
Search

supabase

Deploy to Supabase Edge Functions

Installation

dagger install github.com/fluent-ci-templates/supabase-pipeline@v0.5.1

Entrypoint

Return Type
Supabase
Example
dagger -m github.com/fluent-ci-templates/supabase-pipeline@22f537af48c18ead99962e48a1e1f567568a31aa call \
func (m *myModule) example() *Supabase  {
	return dag.
			Supabase()
}
@function
def example() -> dag.Supabase:
	return (
		dag.supabase()
	)
@func()
example(): Supabase {
	return dag
		.supabase()
}

Types

Supabase 🔗

deploy() 🔗

Deploy to Supabase Edge Functions

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The directory to deploy
tokenSecret !-Supabase access token
projectIdString !-The Supabase project ID
Example
dagger -m github.com/fluent-ci-templates/supabase-pipeline@22f537af48c18ead99962e48a1e1f567568a31aa call \
 deploy --src DIR_PATH --token env:MYSECRET --project-id string
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret, projectId string) string  {
	return dag.
			Supabase().
			Deploy(ctx, src, token, projectId)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret, project_id: str) -> str:
	return await (
		dag.supabase()
		.deploy(src, token, project_id)
	)
@func()
async example(src: Directory, token: Secret, projectId: string): Promise<string> {
	return dag
		.supabase()
		.deploy(src, token, projectId)
}