feat(ci): copy a docker-hub locked version to a seperate catalog repo for chinese users

This commit is contained in:
kjeld Schouten-Lebbing
2022-03-17 10:25:51 +01:00
parent 551902d97b
commit 4816189ea8
2 changed files with 29 additions and 2 deletions
+13 -2
View File
@@ -65,8 +65,9 @@ main() {
pre_commit
validate_catalog
if [ "${production}" == "true" ]; then
release_charts
update_index
gen_dh_cat
release_charts
update_index
fi
for chart in "${changed_charts[@]}"; do
if [[ -d "$chart" ]]; then
@@ -273,6 +274,16 @@ clean_catalog() {
}
export -f clean_catalog
gen_dh_cat() {
rm -rf dh_catalog/*.*
rm -rf dh_catalog/*
cp -rf catalog/* dh_catalog
cd dh_catalog
find ./ -type f -name *.yaml -exec sed -i 's/tccr.io/dh.tccr.io/gI' {} \
cd -
}
export -f gen_dh_cat
# Designed to ensure the appversion in Chart.yaml is in sync with the primary App tag if found
sync_tag() {
local chart="$1"