Update daily.yaml

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing 2023-01-31 22:29:59 +01:00 committed by GitHub
parent dfff570b9c
commit 891d197b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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