chore: local-only flow (remove Gitea workflow) + docs for local pre-push and insecure/HTTP registries
This commit is contained in:
16
README.md
16
README.md
@ -1,15 +1,15 @@
|
||||
# helm-charts repo
|
||||
|
||||
This repository manages two Helm charts (e.g., `code-server-chart`, `vllm-serve`) and automates packaging and publishing on every `git push`.
|
||||
This repository manages two Helm charts (e.g., `code-server-chart`, `vllm-serve`) and automates packaging and publishing on every `git push` (local pre-push hook only; no CI runner required).
|
||||
|
||||
## How it works
|
||||
|
||||
- Local pre-push hook runs `scripts/helm_publish.sh` to `helm package` and `helm push` all charts found under this folder (directories containing a `Chart.yaml`).
|
||||
- A Gitea Actions workflow at `.gitea/workflows/helm-publish.yml` does the same on the server side for each push.
|
||||
- If any chart fails to package/push, the Git push is aborted.
|
||||
|
||||
## Configure registry
|
||||
|
||||
1. Copy `.env.example` to `.env` and fill in:
|
||||
1. Create `.env` and fill in:
|
||||
|
||||
```
|
||||
HELM_OCI_NAMESPACE=gitea.example.com/your-user
|
||||
@ -17,12 +17,12 @@ HELM_USERNAME=your-username
|
||||
HELM_PASSWORD=your-token-or-password
|
||||
```
|
||||
|
||||
2. For CI, add these as repository secrets in Gitea:
|
||||
- `HELM_OCI_NAMESPACE`
|
||||
- `HELM_USERNAME`
|
||||
- `HELM_PASSWORD`
|
||||
The charts are pushed to `oci://$HELM_OCI_NAMESPACE` (Helm appends the chart name and version). For self-signed or HTTP registries, you can add:
|
||||
|
||||
The charts are pushed to `oci://$HELM_OCI_NAMESPACE` (Helm appends the chart name and version).
|
||||
```
|
||||
HELM_PUSH_EXTRA_ARGS="--insecure-skip-tls-verify --plain-http"
|
||||
HELM_LOGIN_EXTRA_ARGS="--insecure --plain-http"
|
||||
```
|
||||
|
||||
## Chart discovery
|
||||
|
||||
|
||||
Reference in New Issue
Block a user