Files
admin b48b20c926
build / build (push) Has been cancelled
import demo-app template
2026-05-26 13:52:14 +04:00

25 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# demo-app (template для Gitea repo)
Это template-копия. На Gitea Actions нужно работать в **Gitea**, поэтому:
1. В Gitea (https://git.furynrage.com) создай repo `admin/demo-app` (private или public).
2. Локально:
```bash
mkdir ~/demo-app-gitea && cd ~/demo-app-gitea
git init
cp -r ~/Desktop/Personal/developer-platform/apps/demo-app/. .
git add . && git commit -m "init"
git remote add origin https://git.furynrage.com/admin/demo-app.git
git push -u origin main
```
(basic auth — admin + пароль из `.secrets-gitea-admin.txt`)
3. В Gitea → Settings → Secrets and Variables → Actions добавь:
- `REGISTRY_USER` = `ci-pusher`
- `REGISTRY_PASSWORD` = из `.secrets-zot.txt`
4. Push в `main` → workflow `.gitea/workflows/build.yml` запустится автоматически.
Результат:
- образ `harbor.furynrage.com/demo-app/app:<sha>` появится в Zot UI
- Trivy scan покажется в logs job'а
- ArgoCD Image Updater подхватит новый тег и задеплоит в namespace `demo-app`