cover helm charts

This commit is contained in:
Ivan087
2025-11-17 17:37:30 +08:00
parent 36823577c0
commit e4164c2c9e
2 changed files with 44 additions and 2 deletions

View File

@ -22,8 +22,11 @@ The charts are pushed to `oci://$HELM_OCI_NAMESPACE` (Helm appends the chart nam
```
HELM_PUSH_EXTRA_ARGS="--insecure-skip-tls-verify --plain-http"
HELM_LOGIN_EXTRA_ARGS="--insecure --plain-http"
ALLOW_OVERWRITE=1
```
When `ALLOW_OVERWRITE=1` is set, the pre-push will first try to delete the existing `<chart>:<version>` tag from Harbor via API (requires `HELM_USERNAME`/`HELM_PASSWORD`). This is needed because OCI registries do not allow overwriting tags.
## Chart discovery
No configuration needed by default. The script auto-discovers chart directories by looking for `Chart.yaml` up to depth 2 (excluding nested `charts/` vendor dir).