15 lines · 646 BRaw
| 1 | import type { JobRunner } from "./job-runner.ts"; |
| 2 | import type { JobSlots } from "./job-slots.ts"; |
| 3 | import type { RunHub } from "./run-hub.ts"; |
| 4 | import type { RunParams } from "./run-pipeline.ts"; |
| 5 | |
| 6 | export interface CiEnv { |
| 7 | readonly ARTIFACTS: Artifacts; |
| 8 | readonly DB: D1Database; |
| 9 | readonly RUN_HUB: DurableObjectNamespace<RunHub>; |
| 10 | readonly JOB_RUNNER: DurableObjectNamespace<JobRunner>; |
| 11 | readonly JOB_SLOTS: DurableObjectNamespace<JobSlots>; |
| 12 | readonly RUNS: Workflow<RunParams>; |
| 13 | /** 32 random bytes in base64. It wraps the key of every CI secret. Without it, secrets can be neither saved nor read. */ |
| 14 | readonly CI_SECRETS_KEY?: string; |
| 15 | } |