From 3c3ca6c72f1d176f5c4a2652259d0f8cb77a96e3 Mon Sep 17 00:00:00 2001 From: t3mi Date: Mon, 25 Sep 2023 13:59:25 +0000 Subject: [PATCH] fix: correct artifact url with missed index and custom target directory Signed-off-by: t3mi --- src/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entrypoint.sh b/src/entrypoint.sh index 374ceb8..3f189d3 100644 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -179,6 +179,7 @@ upload() { charts=$(cd ${CHARTS_TMP_DIR} && ls *.tgz | xargs) + mkdir -p ${INDEX_DIR} mkdir -p ${TARGET_DIR} if [[ -f "${INDEX_DIR}/index.yaml" ]]; then @@ -188,8 +189,9 @@ upload() { mv -f ${CHARTS_TMP_DIR}/index.yaml ${INDEX_DIR}/index.yaml else echo "No index found, generating a new one" + helm repo index ${CHARTS_TMP_DIR} --url ${CHARTS_URL} mv -f ${CHARTS_TMP_DIR}/*.tgz ${TARGET_DIR} - helm repo index ${INDEX_DIR} --url ${CHARTS_URL} + mv -f ${CHARTS_TMP_DIR}/index.yaml ${INDEX_DIR} fi git add ${TARGET_DIR}