GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: deploy dev workers in anomaly-dev (#63379) · jerrylee/opencode@33123b1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • release
      • cloudflare-token.sh
      • deploy-data.sh
      • deploy-files.sh
      • deploy-legacy.sh
      • deploy-site.sh
      • lib.sh
      • targets
        • data/dev
          • default.json
          • root.json
        • files/dev
          • wrangler.json
        • legacy/dev
          • root.json
          • worker.json
        • site/dev
          • root.json
          • worker.json
    • workflows
      • deploy-files.yml
      • deploy-site.yml
      • deploy.yml
  • services
    • data
      • cloudflare.config.ts
      • og.config.ts
      • stage.ts
      • sync.config.ts
    • files
      • wrangler.jsonc
    • legacy
      • cloudflare.config.ts
    • site
      • cloudflare.config.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/release/cloudflare-token.sh‎

Copy file name to clipboardExpand all lines: .github/release/cloudflare-token.sh
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ set +x
1212

1313
url=${CLOUDFLARE_TOKEN_URL:-https://kjivkui2evldapbok5fhrrl6oy0fctkp.lambda-url.us-east-1.on.aws/}
1414
account=${CLOUDFLARE_ACCOUNT_ID:-15d29c8639fd3733b1b5486a2acfd968}
15+
if [[ $# == 1 ]]; then
16+
. "$(dirname "$0")/lib.sh"
17+
account=$(stage_account "$1")
18+
fi
1519

1620
# One argv value, never a line in curl's config: a newline in an override must not be able to
1721
# inject curl options or move the AWS credentials into Basic auth.
Collapse file

‎.github/release/deploy-data.sh‎

Copy file name to clipboardExpand all lines: .github/release/deploy-data.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ done
3232

3333
: "${CLOUDFLARE_API_TOKEN:?Set CLOUDFLARE_API_TOKEN}"
3434
# Pinned in targets/ and in the token issuer's config (anomalyco/secrets).
35-
export CLOUDFLARE_ACCOUNT_ID=15d29c8639fd3733b1b5486a2acfd968
35+
CLOUDFLARE_ACCOUNT_ID=$(stage_account "$mode")
36+
export CLOUDFLARE_ACCOUNT_ID
3637

3738
unexpected=$(cd "$src" && find . ! -type d ! -type f -o -type f ! -path ./SHA256SUMS \
3839
! -path ./v0/config.json \
Collapse file

‎.github/release/deploy-files.sh‎

Copy file name to clipboardExpand all lines: .github/release/deploy-files.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ target="$release/targets/files/$mode/wrangler.json"
2424

2525
: "${CLOUDFLARE_API_TOKEN:?Set CLOUDFLARE_API_TOKEN}"
2626
# Pinned in targets/ and in the token issuer's config (anomalyco/secrets).
27-
export CLOUDFLARE_ACCOUNT_ID=15d29c8639fd3733b1b5486a2acfd968
27+
CLOUDFLARE_ACCOUNT_ID=$(stage_account "$mode")
28+
export CLOUDFLARE_ACCOUNT_ID
2829

2930
unexpected=$(cd "$src" && find . ! -type d ! -type f -o -type f ! -path ./SHA256SUMS ! -path ./index.js)
3031
[ -z "$unexpected" ] || die "Unexpected files in the files artifact: $unexpected"
Collapse file

‎.github/release/deploy-legacy.sh‎

Copy file name to clipboardExpand all lines: .github/release/deploy-legacy.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ target="$release/targets/legacy/$mode"
2424

2525
: "${CLOUDFLARE_API_TOKEN:?Set CLOUDFLARE_API_TOKEN}"
2626
# Pinned in targets/ and in the token issuer's config (anomalyco/secrets).
27-
export CLOUDFLARE_ACCOUNT_ID=15d29c8639fd3733b1b5486a2acfd968
27+
CLOUDFLARE_ACCOUNT_ID=$(stage_account "$mode")
28+
export CLOUDFLARE_ACCOUNT_ID
2829

2930
unexpected=$(cd "$src" && find . ! -type d ! -type f -o -type f ! -path ./SHA256SUMS \
3031
! -path ./v0/config.json \
Collapse file

‎.github/release/deploy-site.sh‎

Copy file name to clipboardExpand all lines: .github/release/deploy-site.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ target="$release/targets/site/$mode"
2424

2525
: "${CLOUDFLARE_API_TOKEN:?Set CLOUDFLARE_API_TOKEN}"
2626
# Pinned in targets/ and in the token issuer's config (anomalyco/secrets).
27-
export CLOUDFLARE_ACCOUNT_ID=15d29c8639fd3733b1b5486a2acfd968
27+
CLOUDFLARE_ACCOUNT_ID=$(stage_account "$mode")
28+
export CLOUDFLARE_ACCOUNT_ID
2829

2930
unexpected=$(cd "$src" && find . ! -type d ! -type f -o -type f ! -path ./SHA256SUMS \
3031
! -path ./v0/config.json \
Collapse file

‎.github/release/lib.sh‎

Copy file name to clipboardExpand all lines: .github/release/lib.sh
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ dry_run() {
2323
[ "${OPENCODE_DRY_RUN:-false}" = true ]
2424
}
2525

26+
stage_account() {
27+
case "$1" in
28+
dev) echo d8e944f537ceef3f06a5bd3aec1d7a53 ;;
29+
production) echo 15d29c8639fd3733b1b5486a2acfd968 ;;
30+
*) die "Unknown Cloudflare stage: $1" ;;
31+
esac
32+
}
33+
2634
sha256() {
2735
if command -v sha256sum > /dev/null; then sha256sum "$@"; else shasum -a 256 "$@"; fi
2836
}
Collapse file

‎.github/release/targets/data/dev/default.json‎

Copy file name to clipboardExpand all lines: .github/release/targets/data/dev/default.json
+19-19Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
"compatibilityDate": "2026-07-25",
44
"compatibilityFlags": ["nodejs_compat"],
55
"triggers": [
6-
{ "type": "fetch", "pattern": "dev.opencode.ai/data*", "zone": "opencode.ai" },
7-
{ "type": "fetch", "pattern": "dev.opencode.ai/en/data*", "zone": "opencode.ai" },
8-
{ "type": "fetch", "pattern": "dev.opencode.ai/zh/data*", "zone": "opencode.ai" },
9-
{ "type": "fetch", "pattern": "dev.opencode.ai/zht/data*", "zone": "opencode.ai" },
10-
{ "type": "fetch", "pattern": "dev.opencode.ai/ko/data*", "zone": "opencode.ai" },
11-
{ "type": "fetch", "pattern": "dev.opencode.ai/de/data*", "zone": "opencode.ai" },
12-
{ "type": "fetch", "pattern": "dev.opencode.ai/es/data*", "zone": "opencode.ai" },
13-
{ "type": "fetch", "pattern": "dev.opencode.ai/fr/data*", "zone": "opencode.ai" },
14-
{ "type": "fetch", "pattern": "dev.opencode.ai/it/data*", "zone": "opencode.ai" },
15-
{ "type": "fetch", "pattern": "dev.opencode.ai/da/data*", "zone": "opencode.ai" },
16-
{ "type": "fetch", "pattern": "dev.opencode.ai/ja/data*", "zone": "opencode.ai" },
17-
{ "type": "fetch", "pattern": "dev.opencode.ai/pl/data*", "zone": "opencode.ai" },
18-
{ "type": "fetch", "pattern": "dev.opencode.ai/ru/data*", "zone": "opencode.ai" },
19-
{ "type": "fetch", "pattern": "dev.opencode.ai/uk/data*", "zone": "opencode.ai" },
20-
{ "type": "fetch", "pattern": "dev.opencode.ai/ar/data*", "zone": "opencode.ai" },
21-
{ "type": "fetch", "pattern": "dev.opencode.ai/no/data*", "zone": "opencode.ai" },
22-
{ "type": "fetch", "pattern": "dev.opencode.ai/br/data*", "zone": "opencode.ai" },
23-
{ "type": "fetch", "pattern": "dev.opencode.ai/th/data*", "zone": "opencode.ai" },
24-
{ "type": "fetch", "pattern": "dev.opencode.ai/tr/data*", "zone": "opencode.ai" }
6+
{ "type": "fetch", "pattern": "dev.opencode.ai/data*", "zone": "dev.opencode.ai" },
7+
{ "type": "fetch", "pattern": "dev.opencode.ai/en/data*", "zone": "dev.opencode.ai" },
8+
{ "type": "fetch", "pattern": "dev.opencode.ai/zh/data*", "zone": "dev.opencode.ai" },
9+
{ "type": "fetch", "pattern": "dev.opencode.ai/zht/data*", "zone": "dev.opencode.ai" },
10+
{ "type": "fetch", "pattern": "dev.opencode.ai/ko/data*", "zone": "dev.opencode.ai" },
11+
{ "type": "fetch", "pattern": "dev.opencode.ai/de/data*", "zone": "dev.opencode.ai" },
12+
{ "type": "fetch", "pattern": "dev.opencode.ai/es/data*", "zone": "dev.opencode.ai" },
13+
{ "type": "fetch", "pattern": "dev.opencode.ai/fr/data*", "zone": "dev.opencode.ai" },
14+
{ "type": "fetch", "pattern": "dev.opencode.ai/it/data*", "zone": "dev.opencode.ai" },
15+
{ "type": "fetch", "pattern": "dev.opencode.ai/da/data*", "zone": "dev.opencode.ai" },
16+
{ "type": "fetch", "pattern": "dev.opencode.ai/ja/data*", "zone": "dev.opencode.ai" },
17+
{ "type": "fetch", "pattern": "dev.opencode.ai/pl/data*", "zone": "dev.opencode.ai" },
18+
{ "type": "fetch", "pattern": "dev.opencode.ai/ru/data*", "zone": "dev.opencode.ai" },
19+
{ "type": "fetch", "pattern": "dev.opencode.ai/uk/data*", "zone": "dev.opencode.ai" },
20+
{ "type": "fetch", "pattern": "dev.opencode.ai/ar/data*", "zone": "dev.opencode.ai" },
21+
{ "type": "fetch", "pattern": "dev.opencode.ai/no/data*", "zone": "dev.opencode.ai" },
22+
{ "type": "fetch", "pattern": "dev.opencode.ai/br/data*", "zone": "dev.opencode.ai" },
23+
{ "type": "fetch", "pattern": "dev.opencode.ai/th/data*", "zone": "dev.opencode.ai" },
24+
{ "type": "fetch", "pattern": "dev.opencode.ai/tr/data*", "zone": "dev.opencode.ai" }
2525
],
2626
"observability": { "enabled": true },
2727
"workersDev": false,
Collapse file

‎.github/release/targets/data/dev/root.json‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"accountId": "15d29c8639fd3733b1b5486a2acfd968",
2+
"accountId": "d8e944f537ceef3f06a5bd3aec1d7a53",
33
"buildContext": { "isPreview": false, "mode": "dev" }
44
}
Collapse file

‎.github/release/targets/files/dev/wrangler.json‎

Copy file name to clipboard
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "opencode-dev-files",
3+
"account_id": "d8e944f537ceef3f06a5bd3aec1d7a53",
34
"main": "index.js",
45
"no_bundle": true,
56
"compatibility_date": "2026-08-01",
67
"workers_dev": false,
78
"preview_urls": false,
89
"vars": { "STAGE": "dev" },
9-
"routes": [{ "pattern": "dev.opencode.ai/files/*", "zone_name": "opencode.ai" }],
10+
"routes": [{ "pattern": "dev.opencode.ai/files/*", "zone_name": "dev.opencode.ai" }],
1011
"r2_buckets": [{ "binding": "FILES", "bucket_name": "opencode-dev-files" }]
1112
}
Collapse file

‎.github/release/targets/legacy/dev/root.json‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"accountId": "15d29c8639fd3733b1b5486a2acfd968",
2+
"accountId": "d8e944f537ceef3f06a5bd3aec1d7a53",
33
"buildContext": { "isPreview": false, "mode": "dev" }
44
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.