diff --git a/.github/workflows/helm-test.yml b/.github/workflows/helm-test.yml index 4127a75..2aa11aa 100644 --- a/.github/workflows/helm-test.yml +++ b/.github/workflows/helm-test.yml @@ -2,6 +2,10 @@ name: Helm Chart CI on: pull_request: + paths: + - 'helm-charts/gitea-mirror/**' + - '.github/workflows/helm-test.yml' + - '.github/ci/values-ci.yaml' push: branches: [ main ] paths: diff --git a/helm/gitea-mirror/templates/ingress.yaml b/helm/gitea-mirror/templates/ingress.yaml index 1fff62c..6458752 100644 --- a/helm/gitea-mirror/templates/ingress.yaml +++ b/helm/gitea-mirror/templates/ingress.yaml @@ -28,8 +28,8 @@ spec: - host: {{ tpl .host $ | quote }} http: paths: - - path: "/" - pathType: "Prefix" + - path: {{ .path | default "/" }} + pathType: {{ .pathType | default "Prefix" }} backend: service: name: {{ include "gitea-mirror.fullname" $ }} diff --git a/helm/gitea-mirror/values.yaml b/helm/gitea-mirror/values.yaml index f711daa..41121c8 100644 --- a/helm/gitea-mirror/values.yaml +++ b/helm/gitea-mirror/values.yaml @@ -15,12 +15,12 @@ podSecurityContext: ingress: enabled: false className: "" - pathType: Prefix annotations: {} hosts: - host: mirror.example.com paths: - path: / + pathType: Prefix tls: [] # - secretName: chart-example-tls # hosts: