feat(docker): add Docker Hub authentication for CI/CD workflows
quality / commitlint (push) Skipped
quality / changes (push) Successful in 7s
quality / docker-check (push) Skipped
quality / openapi (push) Successful in 21s
quality / web (push) Successful in 1m12s
quality / go (push) Successful in 1m3s
quality / bird2 (push) Successful in 16s
CD / quality (push) Successful in 3m7s
CD / publish (push) Successful in 3m58s

- Introduced `docker_hub_token` and `docker_hub_username` secrets for Docker Hub login in CI/CD workflows.
- Updated `.gitea/workflows/ci.yaml`, `.gitea/workflows/cd.yaml`, and `.gitea/workflows/quality.yaml` to utilize these secrets for Docker Hub authentication.
- Enhanced README and releasing documentation to clarify the use of Docker Hub credentials for image mirroring and builds.
This commit is contained in:
Denozordec
2026-08-23 01:55:33 +07:00
parent d56405af7b
commit d9bec85c02
11 changed files with 104 additions and 8 deletions
+6 -6
View File
@@ -44,13 +44,13 @@ Workflows: [.gitea/workflows/ci.yaml](../.gitea/workflows/ci.yaml), [.gitea/work
## Секреты Gitea
Один PAT**`ACTIONS_PAT`** (Settings → Actions → Secrets).
PAT репозитория**`ACTIONS_PAT`** (Settings → Actions → Secrets).
| Право PAT | Зачем |
|-----------|--------|
| push tags | git tag `vX.Y.Z` на commit merge |
| releases | Gitea Release + notes |
| packages (Container Registry) | push образов |
| Секрет | Зачем |
|--------|--------|
| `ACTIONS_PAT` | git tag `vX.Y.Z`, Gitea Release, push в Container Registry |
| `docker_hub_token` | логин на Docker Hub при зеркале base-образов и bake (лимиты anonymous pull) |
| `docker_hub_username` | имя пользователя Docker Hub; если пусто — `gitea.actor` |
Fallback для **git tag**: `github.token`, если PAT недоступен. Push образов в Container Registry — **только `ACTIONS_PAT`** (у job token Gitea нет права packages).