Skip to content

Commit

Permalink
[example] link project
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Dec 18, 2023
1 parent 53a37eb commit ea9b4e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/.fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ea9b4e2

Please sign in to comment.