Skip to content

Commit

Permalink
Update values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 24, 2023
1 parent f8563a3 commit 9d8863d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,30 @@ jobs:
uses: azure/setup-helm@v3.5
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
Expand Down
2 changes: 1 addition & 1 deletion helm/aws-node-termination-handler/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Default values for aws-node-termination-handler.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# Declare variables to be passed into your templates.

image:
repository: public.ecr.aws/aws-ec2/aws-node-termination-handler
Expand Down

0 comments on commit 9d8863d

Please sign in to comment.