Skip to content

Commit

Permalink
🔀 :: 수정된 chart만 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 24, 2023
1 parent a67dde0 commit 08b6a68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,22 @@ jobs:
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.10.1 # Also update in lint-and-test.yaml
version: v3.10.1

- 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
Expand Down Expand Up @@ -72,6 +76,11 @@ jobs:
- name: Get *.tgz files
run: |
git checkout main -- ${{ steps.helm_package.outputs.package_list }}
- name: Helm repo index
run: |
helm repo index .
git add .
- name: Commit The Chart Realease
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
2 changes: 1 addition & 1 deletion helm/dex/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 08b6a68

Please sign in to comment.