Compare commits

...
Author SHA1 Message Date
codex ff87584980 Correct shell guard for every workflow runner label
CI / tests-and-images (pull_request) Waiting to run
Runner smoke test / runner-smoke (pull_request) Waiting to run
2026-11-21 20:27:46 +00:00
codex f2c5cf80fa Route AkylDash Actions to its isolated local Docker Desktop runner
CI / tests-and-images (pull_request) Canceled after 0s
Runner smoke test / runner-smoke (pull_request) Canceled after 0s
2026-11-21 20:26:25 +00:00
agent 43f52ced20 Merge pull request 'Перевести проектные инструкции на Windows Codex и Gitea MCP' (#65) from fix/windows-mcp-instructions into main
CI / tests-and-images (push) Successful in 2m29s
Runner smoke test / runner-smoke (push) Successful in 2s
2026-11-15 19:57:43 +00:00
12 changed files with 99 additions and 14 deletions

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ on:
jobs:
tests-and-images:
runs-on: akyldash-ci
runs-on: akyldash-local-ci
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
gitea.event.workflow_run.conclusion == 'success' &&
gitea.event.workflow_run.event == 'workflow_run' &&
gitea.event.workflow_run.head_branch == 'main'
runs-on: akyldash-ci
runs-on: akyldash-local-ci
steps:
- uses: actions/checkout@v4
with:
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
gitea.event.workflow_run.conclusion == 'success' &&
gitea.event.workflow_run.event == 'push' &&
gitea.event.workflow_run.head_branch == 'main'
runs-on: akyldash-ci
runs-on: akyldash-local-ci
steps:
- uses: actions/checkout@v4
with:
+1 -1
View File
@@ -8,7 +8,7 @@ on:
jobs:
runner-smoke:
runs-on: akyldash-ci
runs-on: akyldash-local-ci
steps:
- name: Verify isolated runner boundary
run: |
+2 -6
View File
@@ -50,11 +50,7 @@
и проверяет runtime-изоляцию job-контейнера: отсутствие системного и
rootless Docker socket, production env/secrets и host checkout. Smoke дополняет
статические проверки runner/CI и не дублирует их.
- Инфраструктурная конфигурация репозитория закрепляет официальный
`act_runner 0.2.13`, label `akyldash-ci`, capacity 1 и ограничения job 2 CPU,
3 GiB RAM, 512 процессов, 15 GiB store. Версия runner и лимиты приведены по
IaC; в рамках этой задачи VPS не проверялся. Job-контейнеры не должны получать
ни один Docker socket.
- Все задания используют `akyldash-local-ci` в Docker Desktop владельца. Конфигурация `infra/runner/desktop` выделяет заданию 4 CPU, 6 GiB RAM и 512 процессов, capacity 1. Данные внутреннего Docker хранятся в отдельном томе. Job-контейнеры не получают Docker socket.
- Текущая политика `main` из branch API: ветка защищена и требует одного
одобрения. На момент проверки API также сообщил `enable_status_check=false`
и пустой список status contexts. Это PR не меняет branch protection.
@@ -86,7 +82,7 @@ Gitea 1.25 документация подтверждает используе
предположениях:
- `runs-on` поддерживает статическую метку или список меток; текущая
`akyldash-ci` — статическая метка.
`akyldash-local-ci` — статическая метка.
- Выражения доступны ограниченно; в сравнении с GitHub Actions Gitea 1.25
обещает функцию `always()`, поэтому workflow не должен зависеть от
`if:`-выражений для динамического выбора набора тестов по diff или уровню
+11 -1
View File
@@ -1,6 +1,16 @@
# AkylDash Gitea Actions runner
## Scope and isolation
## Local Docker Desktop runner
All four workflows target the repository-scoped label `akyldash-local-ci` on the owner's Windows PC. Use the pinned rootless DinD image and Compose files in `infra/runner/desktop`. This requires Docker Desktop's `desktop-linux` context and the existing Gitea HTTPS proxy on `home-runner_runner`. Registration and Docker data use separate named volumes. The outer container runs privileged for rootless DinD. Jobs receive no host mounts, Docker socket or privileged mode. Capacity is one job with 4 CPUs, 6 GiB memory and 512 processes. Docker data shares the Desktop VM's free disk space.
From PowerShell run `.\infra\runner\desktop\register.ps1` once and enter the repository runner registration token at the hidden prompt. Verify `akyldash-desktop-local` is online and both required PR jobs pass. To pause, use `docker --context desktop-linux compose --project-directory infra/runner/desktop stop runner`; use `up -d runner` to resume with the existing registration and data. Old workflow revisions still request the VPS label. Update outstanding branches before retrying.
## Historical VPS configuration
The remainder records the former VPS installation and its test history. Its label must not be assigned to the local runner. Do not install it for current workflows.
### Scope and isolation
The deployment follows the official [Gitea 1.25 act_runner guide](https://docs.gitea.com/1.25/usage/actions/act-runner/)
for repository-scoped registration. Gitea warns that access to a Docker daemon
+5 -1
View File
@@ -1,5 +1,9 @@
# Infrastructure current state
## Local runner storage — 2026-11-21
The AkylDash Docker Desktop data volume reported 931.6 GiB available. A container using the runner configuration reached Gitea over HTTPS. The dedicated local label is `akyldash-local-ci`. Registration and successful Actions jobs require separate verification in Gitea.
## Windows ACL SID resolution — 2026-11-03
- Read-only PowerShell 5.1 inspection found that display-name conversion of
@@ -459,7 +463,7 @@ Docker state, UFW rule details, and protected file metadata were not verified.
reviewing the checkout; it grants only fixed verification, Compose
`config`/`status`, and guarded rollback commands.
4. After merging the reviewed PR, confirm a subsequent CI and smoke run on
`akyldash-ci`. Image publishing and production deployment remain manual and
`akyldash-local-ci`. Image publishing and production deployment remain manual and
are not part of CI.
5. Test backup/restore and rollback only with synthetic data in an isolated
environment before any production deployment.
+34
View File
@@ -0,0 +1,34 @@
name: akyldash-ci
services:
runner:
image: docker.io/gitea/runner@sha256:f7f06cb66fa54b556e295f51fba4996c41b4ca65a1fbe0b03d650f78e32b9d0f
privileged: true
restart: unless-stopped
cpus: 6
mem_limit: 8g
environment:
CONFIG_FILE: /etc/akyldash-runner.yaml
GITEA_INSTANCE_URL: https://git.vakanaut.ru
DOCKERD_ROOTLESS_ROOTLESSKIT_NET: slirp4netns
DOCKERD_ROOTLESS_ROOTLESSKIT_MTU: "65520"
configs:
- source: runner-config
target: /etc/akyldash-runner.yaml
extra_hosts:
- "git.vakanaut.ru:172.30.243.2"
networks: [gitea]
volumes:
- registration:/data
- docker-data:/home/rootless/.local/share/docker
configs:
runner-config:
file: ./runner.yaml
networks:
gitea:
external: true
name: home-runner_runner
volumes:
registration:
docker-data:
+16
View File
@@ -0,0 +1,16 @@
$ErrorActionPreference = 'Stop'
$compose = @('--context', 'desktop-linux', 'compose', '--project-directory', $PSScriptRoot)
$token = Read-Host 'admin/akyldash repository runner registration token' -AsSecureString
if (!$token.Length) { throw 'Registration token is empty.' }
$buffer = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($token)
try {
[Runtime.InteropServices.Marshal]::PtrToStringBSTR($buffer) |
docker @compose run --rm -T --no-deps --workdir /data --entrypoint /bin/sh runner -ec 'test ! -e /data/.runner && exec gitea-runner --config /etc/akyldash-runner.yaml register --no-interactive --instance https://git.vakanaut.ru --name akyldash-desktop-local --token-file /dev/stdin'
if ($LASTEXITCODE) { throw 'Registration failed or already exists.' }
}
finally {
[Runtime.InteropServices.Marshal]::ZeroFreeBSTR($buffer)
$token.Dispose()
}
docker @compose up -d runner
if ($LASTEXITCODE) { throw 'Could not start the registered runner.' }
+17
View File
@@ -0,0 +1,17 @@
log:
level: info
runner:
file: /data/.runner
capacity: 1
labels:
- "akyldash-local-ci:docker://docker.gitea.com/runner-images:ubuntu-24.04"
cache:
enabled: false
container:
docker_host: "-"
privileged: false
valid_volumes: []
options: "--cpus=4 --memory=6g --pids-limit=512 --add-host=git.vakanaut.ru:172.30.243.2"
+1 -1
View File
@@ -5,7 +5,7 @@ workflow=.gitea/workflows/ci.yaml
kaniko_action=.gitea/actions/kaniko-build/action.yml
caddy_action=.gitea/actions/caddy-validate/action.yml
grep -Fq 'runs-on: akyldash-ci' "$workflow"
grep -Fq 'runs-on: akyldash-local-ci' "$workflow"
grep -Fq 'uses: ./.gitea/actions/caddy-validate' "$workflow"
[[ $(grep -Fc 'uses: ./.gitea/actions/kaniko-build' "$workflow") -eq 2 ]]
check_workspace_wiring() {
+9 -1
View File
@@ -63,7 +63,15 @@ grep -Fq 'find-free-subid-range.awk' "$installer"
grep -Fq 'usermod "${subid_args[@]}" "$runner_user"' "$installer"
grep -Fq 'subid_args+=(--add-subuids "$subid_range")' "$installer"
assert_absent 'usermod.*(sudo|docker)|/var/run/docker.sock|/etc/sudoers' "$installer"
grep -Fq 'runs-on: akyldash-ci' .gitea/workflows/runner-smoke.yaml
for workflow in .gitea/workflows/*.yaml; do
labels=$(sed -n 's/^ *runs-on: *//p' "$workflow" | sort -u)
[[ $labels == akyldash-local-ci ]] || { echo "Unexpected runner in $workflow" >&2; exit 1; }
done
desktop=infra/runner/desktop/runner.yaml
grep -Fq 'akyldash-local-ci:docker://docker.gitea.com/runner-images:ubuntu-24.04' "$desktop"
grep -Fq 'docker_host: "-"' "$desktop"
grep -Fxq ' privileged: false' "$desktop"
grep -Fxq ' valid_volumes: []' "$desktop"
grep -Fq 'test ! -S /var/run/docker.sock' .gitea/workflows/runner-smoke.yaml
grep -Fq 'test ! -e /etc/akyldash/production.env' .gitea/workflows/runner-smoke.yaml
grep -Fq 'test ! -e /etc/akyldash/review_secret' .gitea/workflows/runner-smoke.yaml