fix(deps): update helm release k8s-monitoring to v1.6.22 #249
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
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- '.github/workflows/list-images.yaml' | |
- 'platform-apps/charts/**' | |
name: list images | |
jobs: | |
list-images: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: create images list markdown and json | |
shell: bash | |
run: | | |
helm plugin install https://github.com/nikhilsbhat/helm-images | |
cd platform-apps/charts | |
echo "create the images markdown" | |
echo "# Image list" > image-list.md | |
for chart in $( ls -d */ | sed 's#/##' ); do | |
echo "${chart}" | |
echo "## ${chart}" >> image-list.md | |
helm dependency update ${chart} 1> /dev/null 2>&1 | |
for value in $( find ${chart} -type f -name "values-*" ); do | |
helm images get ${chart} -f ${value} --log-level error --kind "Deployment,StatefulSet,DaemonSet,CronJob,Job,ReplicaSet,Pod,Alertmanager,Prometheus,ThanosRuler,Grafana,Thanos,Receiver" | |
done | sort -u | sed 's/^/* /' >> image-list.md | |
done | |
cat image-list.md | |
echo "create the images json" | |
echo -n "" > image-list-temp.json | |
for chart in $( ls -d */ | sed 's#/##' ); do | |
echo "${chart}" | |
helm dependency update ${chart} 1> /dev/null 2>&1 | |
for image in $( | |
for value in $( find ${chart} -type f -name "values-*" ); do | |
helm images get ${chart} -f ${value} --log-level error --kind "Deployment,StatefulSet,DaemonSet,CronJob,Job,ReplicaSet,Pod,Alertmanager,Prometheus,ThanosRuler,Grafana,Thanos,Receiver" | |
done | sort -u ); do | |
id=$( echo -n "${chart}_$( echo ${image} | awk -F/ '{print $NF}' | sed 's/:/_/g' )" ) | |
echo "{\"chart\": \"${chart}\", \"image\": \"${image}\", \"id\": \"${id}\"}" >> image-list-temp.json | |
done | |
done | |
jq --slurp '.' image-list-temp.json > image-list.json | |
rm image-list-temp.json | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git pull | |
git status | |
git add . | |
git diff --cached --exit-code || git commit -m "updated container image list" | |
git push |