Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

chore: sunset — comment out infra + deploy workflows for teardown (#17) #6

chore: sunset — comment out infra + deploy workflows for teardown (#17)

chore: sunset — comment out infra + deploy workflows for teardown (#17) #6

# ─── SUNSET (2026-07-22): app decommissioned. This deploy workflow is commented
# out (not deleted) so it can never redeploy the torn-down stack, while staying a
# readable archive. Restore from git history to reactivate. See docs/progress.md.
#
# name: deploy-catalog
#
# # Ships the catalog Worker after infra is in place. Terraform (HCP) owns the
# # KV namespace + R2 bucket; this workflow owns the Worker script, its bindings,
# # and the Cron trigger via `wrangler deploy` (wrangler.toml is the source of
# # truth for script config). Runs only on master pushes that touch the Worker.
# #
# # Required repo secrets:
# # CLOUDFLARE_API_TOKEN - token with Workers Scripts + KV + R2 edit scope
# # CLOUDFLARE_ACCOUNT_ID - target account id
# # CATALOG_KV_NAMESPACE_ID - id from `terraform output catalog_kv_namespace_id`
# # (set once after the first HCP apply)
#
# on:
# push:
# branches: [master]
# paths:
# - "apps/catalog/**"
# - ".github/workflows/deploy-catalog.yml"
# workflow_dispatch:
#
# jobs:
# deploy:
# name: wrangler-deploy
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: apps/catalog
# steps:
# - name: Checkout
# uses: actions/checkout@v6
#
# - name: Install Bun
# uses: oven-sh/setup-bun@v2
# with:
# bun-version: "1.3"
#
# - name: Install dependencies
# run: bun install --frozen-lockfile
#
# - name: Inject KV namespace id into wrangler.toml
# env:
# KV_ID: ${{ secrets.CATALOG_KV_NAMESPACE_ID }}
# run: |
# if [ -z "$KV_ID" ]; then
# echo "CATALOG_KV_NAMESPACE_ID secret is not set" >&2
# exit 1
# fi
# # Replace the placeholder id provisioned by Terraform (Phase 3.5).
# sed -i "s/PLACEHOLDER_SET_AT_DEPLOY/${KV_ID}/" wrangler.toml
# if grep -q "PLACEHOLDER_SET_AT_DEPLOY" wrangler.toml; then
# echo "placeholder still present after substitution" >&2
# exit 1
# fi
#
# - name: Deploy Worker
# env:
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# run: bun run deploy