From 7b1ffb044694d40c7522f9ac366565e0dabc3e47 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 1 Aug 2022 23:54:37 +0300 Subject: [PATCH] fix(chart-icons): move all chart-icons under hotlink-ok dir (#3373) --- .github/scripts/gen-docs.sh | 2 +- .github/workflows/charts-release.yaml | 4 ++-- tools/build-release.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/gen-docs.sh b/.github/scripts/gen-docs.sh index 52787d9a8d1..468bc7654fe 100755 --- a/.github/scripts/gen-docs.sh +++ b/.github/scripts/gen-docs.sh @@ -29,7 +29,7 @@ sync_tag() { echo "Updating tag of ${chartname} to ${tag}..." sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml" echo "Updating icon of ${chartname}..." - sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" + sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/hotlink-ok\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" echo "Updating home of ${chartname}..." sed -i -e "s|home: .*|home: https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}|" "${chart}/Chart.yaml" echo "Attempting to update sources of ${chartname}..." diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 507bc40b960..3cc7c6890cf 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -86,7 +86,7 @@ jobs: #!/bin/bash CHARTS=(${{ steps.collect-changes.outputs.modifiedChartsAfterTag }}) echo "Removing Chart Docs prior to regeneration..." - mkdir -p website/static/img/chart-icons || echo "chart-icons path already exists, continuing..." + mkdir -p website/static/img/hotlink-ok/chart-icons || echo "chart-icons path already exists, continuing..." for i in "${CHARTS[@]}" do IFS='/' read -r -a chart_parts <<< "$i" @@ -99,7 +99,7 @@ jobs: yes | cp -rf charts/${train}/${chart}/README.md website/docs/charts/${train}/${chart}/index.md 2>/dev/null || : yes | cp -rf charts/${train}/${chart}/CHANGELOG.md website/docs/charts/${train}/${chart}/CHANGELOG.md 2>/dev/null || : yes | cp -rf charts/${train}/${chart}/docs/* website/docs/charts/${train}/${chart}/ 2>/dev/null || : - yes | cp -rf charts/${train}/${chart}/icon.png website/static/img/chart-icons/${chart}.png 2>/dev/null || : + yes | cp -rf charts/${train}/${chart}/icon.png website/static/img/hotlink-ok/chart-icons/${chart}.png 2>/dev/null || : fi done diff --git a/tools/build-release.sh b/tools/build-release.sh index cb4fcfa7839..4884f8b3a6f 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -298,7 +298,7 @@ sync_tag() { echo "Updating tag of ${chartname} to ${tag}..." sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml" echo "Updating icon of ${chartname}..." - sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" + sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/hotlink-ok\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" echo "Updating home of ${chartname}..." sed -i -e "s|home: .*|home: https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}|" "${chart}/Chart.yaml" echo "Attempting to update sources of ${chartname}..."