From 31a38315d1912d6ce6e84399f2124e3aaebc1c31 Mon Sep 17 00:00:00 2001 From: rlaisqls Date: Thu, 24 Aug 2023 20:13:16 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20::=20=EC=88=98=EC=A0=95=EB=90=9C?= =?UTF-8?q?=20chart=EB=A7=8C=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yaml | 20 ++++++++++++++------ helm/dex/values.yaml | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 52468097..12c39888 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,16 +27,20 @@ jobs: with: version: v3.10.1 # Also update in lint-and-test.yaml + - name: Find Changed Helm Packages + id: helm-changes + run: | + changed_helm_packages=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep "^helm/") + echo "changed-helm-packages=$changed_helm_packages" >> $GITHUB_OUTPUT + - name: Add helm repo working-directory: helm run: | - find . -mindepth 1 -maxdepth 1 -type d | - while IFS= read -r package_directory; do - helm dependency update $(basename "$package_directory") - done + ${{ steps.helm-changes.outputs.changed-helm-packages }} | + while IFS=$'\n' read -r package_directory; do - find . -mindepth 2 -maxdepth 2 -name "Chart.lock" | - while IFS= read -r chart_lock_file; do + helm dependency update $(basename "$package_directory") + find $package_directory -mindepth 2 -maxdepth 2 -name "Chart.lock" yq eval '.dependencies[] | .repository' "$chart_lock_file" | while IFS= read -r repo; do @@ -72,6 +76,10 @@ jobs: - name: Get *.tgz files run: | git checkout main -- ${{ steps.helm_package.outputs.package_list }} + + - name: Helm repo index + run: | + helm repo index . - name: Commit The Chart Realease uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/helm/dex/values.yaml b/helm/dex/values.yaml index 7452791e..92e4f359 100644 --- a/helm/dex/values.yaml +++ b/helm/dex/values.yaml @@ -97,7 +97,7 @@ serviceAccount: # -- The name of the service account to use. # If not set and create is true, a name is generated using the fullname template. name: "" - + rbac: # -- Specifies whether RBAC resources should be created. # If disabled, the operator is responsible for creating the necessary resources based on the templates.