Update build-release.sh
This commit is contained in:
@@ -49,7 +49,7 @@ main() {
|
|||||||
echo "Discovering changed charts since '$latest_tag'..."
|
echo "Discovering changed charts since '$latest_tag'..."
|
||||||
local changed_charts=()
|
local changed_charts=()
|
||||||
readarray -t changed_charts <<< "$(lookup_changed_charts "$latest_tag")"
|
readarray -t changed_charts <<< "$(lookup_changed_charts "$latest_tag")"
|
||||||
copy_general_docs
|
# copy_general_docs
|
||||||
if [[ -n "${changed_charts[*]}" ]]; then
|
if [[ -n "${changed_charts[*]}" ]]; then
|
||||||
|
|
||||||
prep_helm
|
prep_helm
|
||||||
@@ -57,14 +57,9 @@ main() {
|
|||||||
parallel -j ${parthreads} chart_runner '2>&1' ::: ${changed_charts[@]}
|
parallel -j ${parthreads} chart_runner '2>&1' ::: ${changed_charts[@]}
|
||||||
echo "Starting post-processing"
|
echo "Starting post-processing"
|
||||||
pre_commit
|
pre_commit
|
||||||
if [ "${production}" == "true" ]; then
|
|
||||||
gen_dh_cat
|
|
||||||
#release_charts
|
|
||||||
#update_index
|
|
||||||
#upload_index
|
|
||||||
fi
|
|
||||||
validate_catalog
|
validate_catalog
|
||||||
if [ "${production}" == "true" ]; then
|
if [ "${production}" == "true" ]; then
|
||||||
|
gen_dh_cat
|
||||||
upload_catalog
|
upload_catalog
|
||||||
upload_dhcatalog
|
upload_dhcatalog
|
||||||
fi
|
fi
|
||||||
@@ -545,6 +540,7 @@ validate_catalog() {
|
|||||||
export -f validate_catalog
|
export -f validate_catalog
|
||||||
|
|
||||||
upload_catalog() {
|
upload_catalog() {
|
||||||
|
echo "Uploading Catalog..."
|
||||||
cd catalog
|
cd catalog
|
||||||
git config user.name "TrueCharts-Bot"
|
git config user.name "TrueCharts-Bot"
|
||||||
git config user.email "bot@truecharts.org"
|
git config user.email "bot@truecharts.org"
|
||||||
@@ -557,6 +553,7 @@ upload_catalog() {
|
|||||||
export -f upload_catalog
|
export -f upload_catalog
|
||||||
|
|
||||||
upload_dhcatalog() {
|
upload_dhcatalog() {
|
||||||
|
echo "Uploading DH-Catalog..."
|
||||||
cd dh_catalog
|
cd dh_catalog
|
||||||
git config user.name "TrueCharts-Bot"
|
git config user.name "TrueCharts-Bot"
|
||||||
git config user.email "bot@truecharts.org"
|
git config user.email "bot@truecharts.org"
|
||||||
|
|||||||
Reference in New Issue
Block a user