Skip to content

Commit

Permalink
Update values.yaml
Browse files Browse the repository at this point in the history
Revert "Update values.yaml"

This reverts commit 4fe105a.
  • Loading branch information
rlaisqls committed Aug 24, 2023
1 parent f8563a3 commit 672ce51
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,40 @@ jobs:
uses: azure/[email protected]
with:
version: v3.10.1 # Also update in lint-and-test.yaml

- name: Filter for helm directory and store in variable
id: helm_files
run: |
helm_paths=()
for path in ${{ steps.list_files.outputs.stdout }}; do
if [[ $path == helm/* ]]; then
helm_paths+=("$path")
fi
done
echo "helm_paths=${helm_paths[*]}" >> $GITHUB_OUTPUT

- name: Helm package
id: helm_package
run: |
paths="${{ steps.helm_files.outputs.helm_paths }}"
for path in $paths; do
helm package "$path"
find helm -mindepth 1 -maxdepth 1 -type d |
while IFS= read -r package_directory; do
package_name=$(basename "$package_directory")
cd helm/$package_name
helm dependency update .
helm dependency build .
cd ../../
done
helm package $(find helm -type d -mindepth 1 -maxdepth 1 -exec basename {} \; | tr '\n' ' ')
package_list=$(find . -type f -mindepth 1 -maxdepth 1 -name "*.tgz" -exec basename {} \; | tr '\n' ' ')
echo "package_list=$package_list" >> $GITHUB_OUTPUT
- name: get and add *.tgz files
id: package_list
run: |
package_list=$(find . -type f -name "*.tgz" -exec basename {} \; | tr '\n' ' ')
- name: Checkout gh-pages branch
uses: actions/checkout@v2
with:
ref: gh-pages

git checkout gh-pages
git checkout main -- $package_list
git add .
- name: Get *.tgz files
run: |
git checkout main -- ${{ steps.helm_package.outputs.package_list }}
- name: Commit The New Image Reference
- name: Commit The Chart Realease
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "update :: new realease"
branch: master
branch: gh-pages
commit_options: '--no-verify --signoff'
repository: .
commit_user_name: XQUARE GitOps Bot
commit_user_email: [email protected]
commit_author: XQUARE GitOps Bot <[email protected]>
commit_author: XQUARE GitOps Bot <[email protected]>

0 comments on commit 672ce51

Please sign in to comment.