From 33f967e42e090d316eb8b77f014d912c3020545c Mon Sep 17 00:00:00 2001 From: tinqs-limited Date: Sun, 7 Jun 2026 20:43:05 +0100 Subject: [PATCH] docs: convert ci docs to the in-repo wiki/ standard + fix stale ECS facts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adopt the team wiki convention (in-repo wiki/ folder, plain markdown) used in tinqs/studio. Convert DEVOPS.md + PLAN.md and the heavy parts of README.md into cross-linked wiki pages: Home, Architecture, DevOps-Reference, Operations, Roadmap. Root README slimmed to a repo intro pointing at wiki/. Corrects stale topology while converting: - ECS cluster tinqs-git / EFS tinqs-git-repos retired 2026-06-05; platform now the standalone EC2 box tinqs-prod-gitea (ALB tinqs-git, ECR image, RDS). - Records this session's fixes: deploy-label dry-run route, runner-name collisions, arikigame IAM bucket, and template deploy repointed ECS→EC2/SSM. Co-Authored-By: Claude Opus 4.8 --- DEVOPS.md | 115 -------------------------- PLAN.md | 30 ------- README.md | 169 +++++---------------------------------- wiki/Architecture.md | 80 ++++++++++++++++++ wiki/DevOps-Reference.md | 109 +++++++++++++++++++++++++ wiki/Operations.md | 105 ++++++++++++++++++++++++ wiki/README.md | 31 +++++++ wiki/Roadmap.md | 33 ++++++++ 8 files changed, 377 insertions(+), 295 deletions(-) delete mode 100644 DEVOPS.md delete mode 100644 PLAN.md create mode 100644 wiki/Architecture.md create mode 100644 wiki/DevOps-Reference.md create mode 100644 wiki/Operations.md create mode 100644 wiki/README.md create mode 100644 wiki/Roadmap.md diff --git a/DEVOPS.md b/DEVOPS.md deleted file mode 100644 index 4c16ac2..0000000 --- a/DEVOPS.md +++ /dev/null @@ -1,115 +0,0 @@ -# DevOps Reference - -## AWS Resources (eu-west-1) - -| Resource | Name/ID | Purpose | -|----------|---------|---------| -| Lambda | `tinqs-ci-dispatch` | Webhook handler + Spot launcher | -| DynamoDB | `tinqs-ci-runs` | Run tracking (repo, run_id, instance_id, status) | -| AMI | `tinqs-ci-runner-v2` (ami-00a129385002e4de9) | Pre-baked runner (Go, Node, Docker, act_runner) | -| Security Group | sg-030bf74b43d3faac7 | Runner SG (outbound HTTPS) | -| Subnet | subnet-04b5aeec9bfc4ec2c | Default VPC subnet | -| Instance Profile | tinqs-ci-runner | IAM role (S3, ECR, ECS, SSM) | -| CloudWatch | /aws/lambda/tinqs-ci-dispatch | Dispatcher logs | -| ECS Cluster | tinqs-git | Platform (Gitea) — NOT for CI runners | -| EFS | tinqs-git-repos (fs-03f3fb4859ceb12a3) | Gitea repo storage — NOT for CI | - -## Deleted resources (26 May 2026) - -| Resource | Why deleted | -|----------|-------------| -| Lambda `tinqs-ci-exec` | Never successfully ran a build. Deploy jobs go through Spot now. | -| CloudWatch `/aws/lambda/tinqs-ci-exec` | Log group for deleted Lambda | -| CloudWatch `/ecs/tinqs-runner` | From Fargate era, no longer used | - -## Webhook flow - -``` -Gitea (tinqs.com) - └─ per-repo webhook on push - └─ POST https:///dispatch - └─ Lambda tinqs-ci-dispatch - ├─ Fetch .gitea/workflows/*.yml via Gitea API - ├─ Evaluate triggers (branch + path filters) - ├─ For each matched workflow: - │ ├─ Read runs-on label - │ └─ RunInstances (Spot, ephemeral) - └─ Track in DynamoDB -``` - -## Spot instance lifecycle - -``` -1. Lambda calls RunInstances (Spot, InstanceInitiatedShutdownBehavior=terminate) -2. User-data runs: - a. Configure git auth (url.insteadOf with GITEA_TOKEN) - b. act_runner register --ephemeral --labels