From 8472b4771b2858612f901e56bbc895eebbdf3a89 Mon Sep 17 00:00:00 2001 From: "ki.sagidullin" Date: Sat, 27 Jun 2026 17:35:03 +0500 Subject: [PATCH] Add Gitea Registry section to README --- README.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f1e0fa0..cb58348 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,69 @@ docker compose up -d docker compose down ``` +## Gitea Container Registry + +### Логин в registry + +```bash +docker login gitea.hal9000.local +``` + +Введите логин и пароль от вашего Gitea аккаунта. + +### Pull образов + +```bash +docker pull gitea.hal9000.local/teramonious/eldir/python-tcl:latest +``` + +### Build и Push + +```bash +docker build -t gitea.hal9000.local/teramonious/eldir/python-tcl:latest -f docker-tcl/Dockerfile . +docker push gitea.hal9000.local/teramonious/eldir/python-tcl:latest +``` + +### CI/CD + +При пуше изменений в папку `docker-tcl/` автоматически запускается сборка: + +```yaml +name: Build & Push +on: + push: + paths: ['docker-tcl/**'] + +jobs: + build: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: gitea.hal9000.local + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_PASSWORD }} + - uses: docker/build-push-action@v5 + with: + context: . + file: docker-tcl/Dockerfile + push: true + tags: gitea.hal9000.local/teramonious/eldir/python-tcl:latest +``` + +### Docker Compose с образами из registry + +```yaml +services: + python-tcl: + image: gitea.hal9000.local/teramonious/eldir/python-tcl:latest +``` + ## Стек - **llama-server** — CUDA, GPU - **python+tcl** — X11 forwarding - **node_exporter** — Prometheus metrics -- Образы → Gitea Container Registry +- Образы → Gitea Container Registry (OCI-compatible) - CI/CD → Gitea Actions (автобилд при пуше в `docker-tcl/**`)