-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,39 +26,30 @@ 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" | ||
done | ||
helm_paths=$(find helm -type d -mindepth 1 -maxdepth 1 -exec basename {} \; | tr '\n' ' ') | ||
helm package $helm_paths | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters