Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Dec 2, 2023
1 parent 662140e commit 56d3885
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ You can also use this pipeline programmatically:
```typescript
import { deploy } from "https://pkg.fluentci.io/supabase_pipeline@v0.3.0/mod.ts";

await deploy();
await deploy(
".",
Deno.env.get("SUPABASE_ACCESS_TOKEN")!,
Deno.env.get("PROJECT_ID")!
);

```
12 changes: 10 additions & 2 deletions src/dagger/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export default async function pipeline(src = ".", args: string[] = []) {
return;
}

await deploy(src);
await deploy(
src,
Deno.env.get("SUPABASE_ACCESS_TOKEN")!,
Deno.env.get("PROJECT_ID")!
);
}

async function runSpecificJobs(args: jobs.Job[]) {
Expand All @@ -21,6 +25,10 @@ async function runSpecificJobs(args: jobs.Job[]) {
if (!job) {
throw new Error(`Job ${name} not found`);
}
await job();
await job(
".",
Deno.env.get("SUPABASE_ACCESS_TOKEN")!,
Deno.env.get("PROJECT_ID")!
);
}
}

0 comments on commit 56d3885

Please sign in to comment.