diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 90416c70..9b98e749 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 diff --git a/helm/aws-node-termination-handler/values.yaml b/helm/aws-node-termination-handler/values.yaml index dd619f17..d7acda04 100644 --- a/helm/aws-node-termination-handler/values.yaml +++ b/helm/aws-node-termination-handler/values.yaml @@ -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