From 9ae73d02e26b7978eda0125b5e7cbef706b5ff48 Mon Sep 17 00:00:00 2001 From: Nicolas Takashi Date: Sat, 6 Nov 2021 22:33:12 +0000 Subject: [PATCH] [FEAT] adding repo dash path flag --- .github/workflows/gh-release.yaml | 2 ++ charts/gitana/templates/deployment.yaml | 3 +++ charts/gitana/values.yaml | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) 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