KB-INFRA-004: Forgejo onmind como origin de desenvolvimento
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
483babaacb
commit
411ffed535
2 changed files with 89 additions and 1 deletions
18
index.json
18
index.json
|
|
@ -51,6 +51,24 @@
|
||||||
"path": "records/infrastructure/KB-INFRA-003-git-dual-push-forgejo-lab-mindtek.md",
|
"path": "records/infrastructure/KB-INFRA-003-git-dual-push-forgejo-lab-mindtek.md",
|
||||||
"summary": "id: KB-INFRA-003"
|
"summary": "id: KB-INFRA-003"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "KB-INFRA-004",
|
||||||
|
"title": "Forgejo onmind é o origin de desenvolvimento (todo trabalho dev é versionado lá)",
|
||||||
|
"domain": "infrastructure",
|
||||||
|
"tags": [
|
||||||
|
"git",
|
||||||
|
"forgejo",
|
||||||
|
"origin",
|
||||||
|
"workflow",
|
||||||
|
"dev",
|
||||||
|
"sync",
|
||||||
|
"credentials"
|
||||||
|
],
|
||||||
|
"status": "active",
|
||||||
|
"severity": "high",
|
||||||
|
"path": "records/infrastructure/KB-INFRA-004-forgejo-onmind-dev-origin.md",
|
||||||
|
"summary": "id: KB-INFRA-004"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "KB-PLUGIN-001",
|
"id": "KB-PLUGIN-001",
|
||||||
"title": "Instalacao de plugin GLPI requer callbacks install/uninstall",
|
"title": "Instalacao de plugin GLPI requer callbacks install/uninstall",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,70 @@
|
||||||
|
---
|
||||||
|
id: KB-INFRA-004
|
||||||
|
title: "Forgejo onmind é o origin de desenvolvimento (todo trabalho dev é versionado lá)"
|
||||||
|
domain: infrastructure
|
||||||
|
tags:
|
||||||
|
- git
|
||||||
|
- forgejo
|
||||||
|
- origin
|
||||||
|
- workflow
|
||||||
|
- dev
|
||||||
|
- sync
|
||||||
|
- credentials
|
||||||
|
status: active
|
||||||
|
severity: high
|
||||||
|
created_at: 2026-06-29
|
||||||
|
updated_at: 2026-06-29
|
||||||
|
applies_to:
|
||||||
|
- knowledge-base
|
||||||
|
- plugins GLPI11 (ex.: redmine)
|
||||||
|
- qualquer repo novo de desenvolvimento
|
||||||
|
related_records:
|
||||||
|
- KB-INFRA-003
|
||||||
|
- KB-PLUGIN-031
|
||||||
|
---
|
||||||
|
|
||||||
|
# Forgejo onmind é o origin de desenvolvimento
|
||||||
|
|
||||||
|
## Regra
|
||||||
|
|
||||||
|
**Todo trabalho em fase de desenvolvimento é versionado no Forgejo local da stack**,
|
||||||
|
servido em `https://onmind.mindtek.com.br/git/rodolpho.lopes/<repo>` (container
|
||||||
|
`devportal_forgejo`, roteado pelo Traefik no path `/git`). Esse é o **`origin`**
|
||||||
|
de cada repositório dev.
|
||||||
|
|
||||||
|
Convenção: ao criar/evoluir qualquer plugin ou repositório nesta fase, o `origin`
|
||||||
|
aponta para esse Forgejo e o fluxo é `git add` → `git commit` → `git push` a cada
|
||||||
|
marco validado.
|
||||||
|
|
||||||
|
## Configuração padrão (sem token exposto)
|
||||||
|
|
||||||
|
O token de acesso fica no credential helper, **não** embutido na URL do remote
|
||||||
|
(evita vazamento em `git remote -v`):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git config --global credential.helper store
|
||||||
|
# uma vez por host (perm 600):
|
||||||
|
echo "https://rodolpho.lopes:<TOKEN>@onmind.mindtek.com.br" >> ~/.git-credentials
|
||||||
|
chmod 600 ~/.git-credentials
|
||||||
|
|
||||||
|
# por repo — origin limpo:
|
||||||
|
git remote add origin "https://onmind.mindtek.com.br/git/rodolpho.lopes/<repo>.git"
|
||||||
|
git push -u origin main
|
||||||
|
```
|
||||||
|
|
||||||
|
`git remote -v` deve mostrar a URL **sem** o token.
|
||||||
|
|
||||||
|
## Repos já neste padrão
|
||||||
|
|
||||||
|
- `knowledge-base` — origin migrado para URL limpa (token via helper) em 2026-06-29.
|
||||||
|
- `redmine` (plugin GLPI) — repo `onmind.mindtek.com.br/git/rodolpho.lopes/Redmine`,
|
||||||
|
criado e sincronizado em 2026-06-29. Ver [[KB-PLUGIN-031]] (runbook de plugin)
|
||||||
|
e a estrutura do plugin em si.
|
||||||
|
|
||||||
|
## Observações
|
||||||
|
|
||||||
|
- O Forgejo **lab** (`192.168.100.101`, [KB-INFRA-003]) pode não estar acessível
|
||||||
|
de dentro da stack — neste caso o onmind é o **origin único**. Quando o lab
|
||||||
|
estiver acessível, usar dual-push conforme [KB-INFRA-003].
|
||||||
|
- O nome do repo no Forgejo pode ter case próprio (ex.: `Redmine` com R maiúsculo);
|
||||||
|
use a URL exata exibida na interface do Forgejo.
|
||||||
Loading…
Reference in a new issue