-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix zenith workflow ci: fix zenith workflow
- Loading branch information
Showing
24 changed files
with
6,698 additions
and
5,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ up( | |
You can also use this pipeline programmatically: | ||
|
||
```ts | ||
import { preview, up } from "https://pkg.fluentci.io/[email protected].0/mod.ts"; | ||
import { preview, up } from "https://pkg.fluentci.io/[email protected].1/mod.ts"; | ||
|
||
await preview( | ||
".", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { | ||
preview, | ||
up, | ||
} from "https://pkg.fluentci.io/[email protected].0/mod.ts"; | ||
} from "https://pkg.fluentci.io/[email protected].1/mod.ts"; | ||
|
||
await preview(); | ||
await up(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ | |
"exclude": [ | ||
"example/", | ||
".fluentci/", | ||
"gen/" | ||
"gen/", | ||
"sdk/" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
|
||
export type { DirectoryID, SecretID } from "./sdk/client.gen.ts"; | ||
export { Directory, Secret, File, Container } from "./sdk/client.gen.ts"; | ||
export { Directory, Secret, File, Container, dag } from "./sdk/client.gen.ts"; | ||
export { connect, uploadContext } from "https://sdk.fluentci.io/v0.3.0/mod.ts"; | ||
export { brightGreen } from "https://deno.land/[email protected]/fmt/colors.ts"; | ||
export { withDevbox } from "https://nix.fluentci.io/v0.5.3/src/dagger/steps.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
|
||
export type { DirectoryID, SecretID } from "./sdk/client.gen.ts"; | ||
export { Directory, Secret, File, Container } from "./sdk/client.gen.ts"; | ||
export { Directory, Secret, File, Container, dag } from "./sdk/client.gen.ts"; | ||
export { connect, uploadContext } from "https://sdk.fluentci.io/v0.3.0/mod.ts"; | ||
export { brightGreen } from "https://deno.land/[email protected]/fmt/colors.ts"; | ||
export { withDevbox } from "https://nix.fluentci.io/v0.5.3/src/dagger/steps.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { createGQLClient } from "./client.ts"; | ||
import { Context } from "./context.ts"; | ||
|
||
/** | ||
* @hidden | ||
* | ||
* Initialize a default client context from environment. | ||
*/ | ||
export function initDefaultContext(): Context { | ||
let ctx = new Context(); | ||
|
||
// Prefer DAGGER_SESSION_PORT if set | ||
const daggerSessionPort = Deno.env.get("DAGGER_SESSION_PORT"); | ||
if (daggerSessionPort) { | ||
const sessionToken = Deno.env.get("DAGGER_SESSION_TOKEN"); | ||
if (!sessionToken) { | ||
throw new Error( | ||
"DAGGER_SESSION_TOKEN must be set when using DAGGER_SESSION_PORT" | ||
); | ||
} | ||
|
||
ctx = new Context({ | ||
client: createGQLClient(Number(daggerSessionPort), sessionToken), | ||
}); | ||
} else { | ||
throw new Error("DAGGER_SESSION_PORT must be set"); | ||
} | ||
|
||
return ctx; | ||
} |
Oops, something went wrong.