From ea9b4e216db10e45c21f890a5ddfbc29457c85c8 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Mon, 18 Dec 2023 08:55:16 +0000 Subject: [PATCH] [example] link project --- example/.fluentci/src/dagger/jobs.ts | 6 ++++++ src/dagger/jobs.ts | 6 ++++++ 2 files changed, 12 insertions(+) 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",