ozanandZCode ac989e2c4d fix(checkout): support SHA refs — git clone --branch rejects them
A SHA in `ref` died with "Remote branch <sha> not found" (killed the
2026-11-06 sim publish of SHA f0e206ff3: dispatch ref=branch +
inputs.ref=<sha> is the publish-day pattern, since the Gitea dispatch
API only accepts branch names). SHA-shaped refs now init+fetch the sha
explicitly (the server allows anySHA fetch); branch/tag refs keep the
exact old path. Sparse path already fetched this way.

Co-Authored-By: Ozan Bozkurt <ozan@tinqs.com>
Co-Authored-By: ZCode <GLM-5.3 via ZCode>
2026-11-06 19:41:30 +00:00

tinqs/ci

CI toolchain for Tinqs Studio — composite Gitea Actions and a Lambda dispatcher that orchestrates ephemeral EC2 Spot runners.

⚠️ This repo must stay public. act_runner (go-git) clones action repos without auth; every other tinqs repo is private. If this repo goes private, every uses: tinqs/ci/... step breaks.

Push → Gitea webhook → Lambda (tinqs-ci-dispatch) → EC2 Spot → act_runner → job → self-terminate

Using the actions

steps:
  - uses: tinqs/ci/checkout@v1
    with:
      sparse: 'cmd/tstudio'
  - uses: tinqs/ci/setup-go@v1
  - uses: tinqs/ci/setup-aws@v1
    with:
      ecr-login: 'true'
Action What it does
tinqs/ci/checkout@v1 Clone a repo from tinqs.com (sparse, depth, token auth)
tinqs/ci/setup-go@v1 Install Go (skips if pre-baked in AMI)
tinqs/ci/setup-node@v1 Install Node.js + pnpm (skips if pre-baked)
tinqs/ci/setup-aws@v1 Install AWS CLI + optional ECR login

Layout

  • checkout/, setup-go/, setup-node/, setup-aws/ — composite actions
  • orchestrator/dispatch/ — the dispatcher Lambda (main.go)
  • images/ — runner image Dockerfiles

📖 Full docs → wiki/

The team wiki lives in wiki/ (plain markdown, rendered by Gitea):

  • Architecture — design, dispatcher, labels, runner lifecycle
  • DevOps Reference — AWS resources, webhook flow, Spot lifecycle, env vars, cost
  • Operations — deploy the dispatcher, template deploy, rotate tokens, AMI, monitoring, incidents
  • Roadmap — done / next
S
Description
Tinqs CI - composite actions and runner base image
Readme
82 MiB
0 Stars 5 Watchers 0 Forks
Languages
Go 83.3%
Dockerfile 10.9%
Shell 5.8%