Skip to content

Commit

Permalink
Merge pull request #39 from t3mi/master
Browse files Browse the repository at this point in the history
fix: correct artifact url with missed index and custom target directory
  • Loading branch information
stefanprodan committed Sep 27, 2023
2 parents 0ad2bb3 + 3c3ca6c commit 89c6698
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit 89c6698

Please sign in to comment.