2021-03-17 16:20:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
for chart in stable/*; do
|
|
|
|
if [ -d "${chart}" ]; then
|
|
|
|
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
|
|
|
|
chartname=$(basename ${chart})
|
|
|
|
echo "Processing: ${chart} - folder: ${maxfolderversion} - version: ${maxchartversion}"
|
|
|
|
|
|
|
|
rm -Rf ${chart}/${maxfolderversion}/charts/*.tgz
|
|
|
|
cp -f library/common-test/charts/* ${chart}/${maxfolderversion}/charts/
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
for chart in beta/*; do
|
|
|
|
if [ -d "${chart}" ]; then
|
|
|
|
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
|
|
|
|
chartname=$(basename ${chart})
|
|
|
|
echo "Processing: ${chart} - folder: ${maxfolderversion} - version: ${maxchartversion}"
|
|
|
|
|
|
|
|
rm -Rf ${chart}/${maxfolderversion}/charts/*.tgz
|
|
|
|
cp -f library/common-test/charts/* ${chart}/${maxfolderversion}/charts/
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for chart in staging/*; do
|
2021-03-05 21:31:02 +00:00
|
|
|
if [ -d "${chart}" ]; then
|
|
|
|
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
|
|
|
|
chartname=$(basename ${chart})
|
|
|
|
echo "Processing: ${chart} - folder: ${maxfolderversion} - version: ${maxchartversion}"
|
2021-03-06 20:32:31 +00:00
|
|
|
|
|
|
|
rm -Rf ${chart}/${maxfolderversion}/charts/*.tgz
|
|
|
|
cp -f library/common-test/charts/* ${chart}/${maxfolderversion}/charts/
|
|
|
|
|
2021-03-05 21:31:02 +00:00
|
|
|
fi
|
|
|
|
done
|