diff --git a/example/.fluentci/src/dagger/jobs.ts b/example/.fluentci/src/dagger/jobs.ts index 8a56a15..acdb5c5 100644 --- a/example/.fluentci/src/dagger/jobs.ts +++ b/example/.fluentci/src/dagger/jobs.ts @@ -55,6 +55,12 @@ export async function deploy( .withDirectory("/app", context) .withWorkdir("/app") .withSecretVariable("SUPABASE_ACCESS_TOKEN", secret) + .withExec([ + "supabase", + "link", + "--project-ref", + Deno.env.get("PROJECT_ID") || projectId!, + ]) .withExec([ "supabase", "functions", diff --git a/src/dagger/jobs.ts b/src/dagger/jobs.ts index 8a56a15..acdb5c5 100644 --- a/src/dagger/jobs.ts +++ b/src/dagger/jobs.ts @@ -55,6 +55,12 @@ export async function deploy( .withDirectory("/app", context) .withWorkdir("/app") .withSecretVariable("SUPABASE_ACCESS_TOKEN", secret) + .withExec([ + "supabase", + "link", + "--project-ref", + Deno.env.get("PROJECT_ID") || projectId!, + ]) .withExec([ "supabase", "functions",