diff --git a/.github/workflows/gh-release.yaml b/.github/workflows/gh-release.yaml index 53c7271..7483c87 100644 --- a/.github/workflows/gh-release.yaml +++ b/.github/workflows/gh-release.yaml @@ -4,6 +4,8 @@ on: push: branches: - main + paths: + - "charts/**" jobs: release: diff --git a/charts/gitana/templates/deployment.yaml b/charts/gitana/templates/deployment.yaml index fab6db2..67f9b4c 100644 --- a/charts/gitana/templates/deployment.yaml +++ b/charts/gitana/templates/deployment.yaml @@ -43,6 +43,9 @@ spec: - --repository.auth.user={{ .Values.flags.repository.auth }} - --repository.auth.user={{ .Values.flags.repository.password }} {{- end }} + {{- if .Values.flags.repository.dashboardPath }} + - --repository.dashboard-path={{ .Values.flags.repository.dashboardPath }} + {{- end }} - --repository.branch={{ .Values.flags.repository.branch }} - --repository.path=/tmp/gitana/repository - --repository.url={{ .Values.flags.repository.url }} diff --git a/charts/gitana/values.yaml b/charts/gitana/values.yaml index ba4926d..4879352 100644 --- a/charts/gitana/values.yaml +++ b/charts/gitana/values.yaml @@ -92,9 +92,12 @@ flags: repository: # repository branch (default "main") branch: main + + # folder where the dashboards are present into the git repository. + dashboardPath: "" # repository url - url: "https://github.com/nicolastakashi/poc" + url: "" auth: {} # username to perform authentication