From 8d1ae789239ec8f2d77c4a806598e1b28d805673 Mon Sep 17 00:00:00 2001 From: Valery Petrov Date: Thu, 28 May 2026 19:57:04 +0300 Subject: [PATCH] issues/27: docs CI manual run on prod test stage --- infrastructure/test-contour/git-flow.md | 5 +++-- infrastructure/test-contour/guides/gitea-ci.md | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/infrastructure/test-contour/git-flow.md b/infrastructure/test-contour/git-flow.md index c0f2c42..d4de1f3 100644 --- a/infrastructure/test-contour/git-flow.md +++ b/infrastructure/test-contour/git-flow.md @@ -194,8 +194,9 @@ Hotfix **не** мержится через `test` → `stage` целиком ### Test — **работает сейчас** -| Триггер | Тег `*-test` на ветке `test` | -| Pipeline | test → build-and-push → deploy-gitops | +| Триггер | Тег `*-test` на ветке `test` (релиз) **или** ручной запуск | +| Тесты вручную | Gitea → **Actions** → **Run workflow** → ветка `prod` / `test` / `stage` | +| Pipeline на тег | test → build-and-push → deploy-gitops | | GitOps | `apps/{app}/values-test.yaml` в `sova-deploy` | | ArgoCD | `backend-test`, `cabinet-test`, … | | URLs | `*.test.sova.local`, `docs.sova.local` | diff --git a/infrastructure/test-contour/guides/gitea-ci.md b/infrastructure/test-contour/guides/gitea-ci.md index cdc092e..018f1bb 100644 --- a/infrastructure/test-contour/guides/gitea-ci.md +++ b/infrastructure/test-contour/guides/gitea-ci.md @@ -22,9 +22,19 @@ ![Организация sova](../screenshots/02-gitea-org-sova.png) -## 3. Gitea Actions — pipeline на push тега +## 3. Gitea Actions — когда запускается pipeline -Workflow в каждом app-репозитории: +**Feature-ветки** (`issues/27`, `feature/*`) — **не запускают** CI автоматически. + +| Событие | Что происходит | +|---------|----------------| +| Push в `issues/27` / PR | ничего | +| **Run workflow** вручную (Actions) | только job **test**, ветка `prod` / `test` / `stage` | +| Push **тега** `backend-v*-test` и т.п. | полный pipeline: test → build → deploy-gitops | + +Ручной прогон тестов: **Actions** → workflow **backend-ci-cd** → **Run workflow** → выбрать `test` (или `prod` / `stage`). + +Workflow на push тега: 1. **test** — unit/build проверки 2. **build-and-push** — образ в Container Registry