docs(readme): fix Helm chart values and add main branch protection guide
This commit is contained in:
@@ -2,6 +2,27 @@
|
|||||||
|
|
||||||
Reusable workflow -kirjasto Gitea Actionsille. Lisätietoja: [docs/](docs/)
|
Reusable workflow -kirjasto Gitea Actionsille. Lisätietoja: [docs/](docs/)
|
||||||
|
|
||||||
|
## Main-haaran suojaus
|
||||||
|
|
||||||
|
Jokaisessa tätä kirjastoa käyttävässä repossa `main`-haara suojataan — koodi päätyy sinne vain PR:n kautta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Repository → Settings → Branches → Branch Protection → Add Rule
|
||||||
|
```
|
||||||
|
|
||||||
|
| Osio | Asetus | Arvo |
|
||||||
|
|------|--------|------|
|
||||||
|
| **Patterns** | Protected Branch Name Pattern | `main` |
|
||||||
|
| **Push** | Disable Push | ✓ |
|
||||||
|
| **Force Push** | Disable Force Push | ✓ |
|
||||||
|
| **Pull Request Approvals** | Required approvals | `1` |
|
||||||
|
| | Dismiss stale approvals | ✓ |
|
||||||
|
| | Ignore stale approvals | ✓ |
|
||||||
|
| | Enable Status Check | ✓ (kun CI on olemassa) |
|
||||||
|
| **Pull Request Merge** | Block merge on rejected reviews | ✓ |
|
||||||
|
| | Block merge on official review requests | ✓ |
|
||||||
|
| | Block merge if pull request is outdated | ✓
|
||||||
|
|
||||||
## Gitea Actions runner (K8s / Helm)
|
## Gitea Actions runner (K8s / Helm)
|
||||||
|
|
||||||
Act runner suorittaa Gitea Actions workflowt. Asennus Kubernetes-klusteriin Helm chartilla:
|
Act runner suorittaa Gitea Actions workflowt. Asennus Kubernetes-klusteriin Helm chartilla:
|
||||||
|
|||||||
Reference in New Issue
Block a user