From 891d197b86f22cc32d492517703ca8f71972e2a6 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Tue, 31 Jan 2023 22:29:59 +0100 Subject: [PATCH] Update daily.yaml Signed-off-by: Kjeld Schouten-Lebbing --- .github/workflows/daily.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index 6670b561c0a..13034f6560f 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -94,7 +94,15 @@ jobs: tcsource="https://github.com/truecharts/charts/tree/master/charts/$train/$chartname" go-yq -i '.sources += env(tcsource)' "${chart}/Chart.yaml" container=$(cat website/docs/charts/description_list.md | grep "${chartname}" | cut -f3 -d '|' | grep -v 'Not Found' || echo "") if [ ! -z "$container" ]; then - container="${container}" go-yq -i '.sources += env(container)' "${chart}/Chart.yaml" + prefix="https://hub.docker.com/" + if echo ${container} | grep 'ghcr'; then + prefix="https://ghcr.com/" + elif echo ${container} | grep 'quay'; then + prefix="https://quay.com/" + elif echo ${container} | grep 'tccr'; then + prefix="https://github.com/truecharts/containers/tree/master/mirror/" + fi + container="${prefix}${container}" go-yq -i '.sources += env(container)' "${chart}/Chart.yaml" fi # Add the rest of the sources while IFS= read -r line; do