GeezerVison is showing github.com — feat: initial datalake and stats site (#28666) · webpro/opencode@5b02ac4
File tree
Expand file treeCollapse file tree
Open diff view settings
20260522121617_common_dust 20260523110335_cool_vin_gonzales
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss bannerExpand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +.git |
| 2 | +.opencode |
| 3 | +.sst |
| 4 | +.turbo |
| 5 | +.wrangler |
| 6 | +node_modules |
| 7 | +**/node_modules |
| 8 | +**/.output |
| 9 | +**/dist |
| 10 | +**/.turbo |
| 11 | +**/.vite |
| 12 | +**/coverage |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 |
|
10 | 10 | concurrency: ${{ github.workflow }}-${{ github.ref }} |
11 | 11 |
|
| 12 | +permissions: |
| 13 | + contents: read |
| 14 | + id-token: write |
| 15 | + |
12 | 16 | jobs: |
13 | 17 | deploy: |
| 18 | + if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production') |
14 | 19 | runs-on: ubuntu-latest |
| 20 | + environment: ${{ github.ref_name }} |
15 | 21 | steps: |
16 | 22 | - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 |
17 | 23 |
|
|
21 | 27 | with: |
22 | 28 | node-version: "24" |
23 | 29 |
|
| 30 | + - uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1 |
| 31 | + with: |
| 32 | + role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_ARN }} |
| 33 | + role-session-name: opencode-${{ github.run_id }} |
| 34 | + aws-region: us-east-1 |
| 35 | + |
24 | 36 | - run: bun sst deploy --stage=${{ github.ref_name }} |
25 | 37 | env: |
26 | 38 | CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |
|
Collapse file
Copy file name to clipboardExpand all lines: bun.lock +112-1Lines changed: 112 additions & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: infra/app.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ export const api = new sst.cloudflare.Worker("Api", { |
30 | 30 | transform: { |
31 | 31 | worker: (args) => { |
32 | 32 | args.logpush = true |
33 | | - if ($app.stage === "vimtor") return |
| 33 | + if ($app.stage === "vimtor" || $app.stage === "adam") return |
34 | 34 | args.bindings = $resolve(args.bindings).apply((bindings) => [ |
35 | 35 | ...bindings, |
36 | 36 | { |
|
Collapse file
Copy file name to clipboardExpand all lines: infra/console.ts +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { domain } from "./stage" |
| 1 | +import { deployAws, domain } from "./stage" |
2 | 2 | import { EMAILOCTOPUS_API_KEY } from "./app" |
3 | 3 | import { SECRET } from "./secret" |
4 | 4 |
|
| 5 | +const lake = deployAws ? await import("./lake") : undefined |
| 6 | + |
5 | 7 | //////////////// |
6 | 8 | // DATABASE |
7 | 9 | //////////////// |
@@ -240,7 +242,7 @@ const SALESFORCE_INSTANCE_URL = new sst.Secret("SALESFORCE_INSTANCE_URL") |
240 | 242 |
|
241 | 243 | const logProcessor = new sst.cloudflare.Worker("LogProcessor", { |
242 | 244 | handler: "packages/console/function/src/log-processor.ts", |
243 | | - link: [new sst.Secret("HONEYCOMB_API_KEY")], |
| 245 | + link: [SECRET.HoneycombApiKey, ...(lake?.lakeIngest ? [lake.lakeIngest] : [])], |
244 | 246 | }) |
245 | 247 |
|
246 | 248 | new sst.cloudflare.x.SolidStart("Console", { |
|