From e87eb16a7055e81f6fe48bcfdc3609746378ff6e Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Wed, 9 Dec 2020 19:46:31 +0100 Subject: [PATCH] Work around commento versioning issue during linting --- .github/workflows/helm-charts-test.yaml | 5 ++--- charts/commento/Chart.yaml | 2 +- charts/commento/ci/postgresql-values.yaml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/helm-charts-test.yaml b/.github/workflows/helm-charts-test.yaml index 136d483..4a4af0e 100644 --- a/.github/workflows/helm-charts-test.yaml +++ b/.github/workflows/helm-charts-test.yaml @@ -11,8 +11,6 @@ jobs: - name: Fetch history run: git fetch --prune --unshallow - - run: | - echo -e " \"postgresql://postgres:postgres@postgres/postgres\"" >> charts/commento/ci/postgresql-values.yaml - name: Lint charts id: lint uses: helm/chart-testing-action@v1.1.0 @@ -55,7 +53,8 @@ jobs: cp charts/cron-jobs/library-ci/*.yaml charts/cron-jobs/templates/ cp charts/horizontal-pod-autoscalers/library-ci/*.yaml charts/horizontal-pod-autoscalers/templates/ cp charts/pi-hole-exporter/library-ci/*.yaml charts/pi-hole-exporter/templates/ - echo -e " \"${{ steps.postgresql.outputs.url }}\"" >> charts/commento/ci/postgresql-values.yaml + sed -i '$ d' charts/commento/ci/postgresql-values.yaml + echo -e " manual: \"${{ steps.postgresql.outputs.url }}\"\r\n" >> charts/commento/ci/postgresql-values.yaml sed -i 's/library/application/g' charts/cron-jobs/Chart.yaml sed -i 's/library/application/g' charts/horizontal-pod-autoscalers/Chart.yaml - name: Test charts diff --git a/charts/commento/Chart.yaml b/charts/commento/Chart.yaml index 0668527..3ff19a1 100644 --- a/charts/commento/Chart.yaml +++ b/charts/commento/Chart.yaml @@ -4,7 +4,7 @@ description: Helm chart to install commento on a kubernetes cluster home: https://commento.io/ icon: https://cdn.commento.io/images/logo.svg name: commento -version: 0.1.0 +version: 0.1.1 maintainers: - name: WyriHaximus email: helm@wyrihaximus.net diff --git a/charts/commento/ci/postgresql-values.yaml b/charts/commento/ci/postgresql-values.yaml index 82e1b42..1507cfa 100644 --- a/charts/commento/ci/postgresql-values.yaml +++ b/charts/commento/ci/postgresql-values.yaml @@ -5,4 +5,4 @@ hpa: database: urlSuffix: "?sslmode=disable" - manual: \ No newline at end of file + manual: "postgresql://postgres:postgres@postgres/postgres"