fix: correct artifact url with missed index and custom target directory
Signed-off-by: t3mi <t3mi@users.noreply.github.com>
This commit is contained in:
parent
0ad2bb3773
commit
3c3ca6c72f
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue