Skip to content

Commit 97ea7bd

Browse files
committed
fix helm publish
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
1 parent f377d4f commit 97ea7bd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/package-helm.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ jobs:
8989
echo "CHART_VERSION=${CHART_VERSION}"
9090
echo "APP_VERSION=${APP_VERSION}"
9191
echo "package..."
92-
ls -l "$CHARTS_DIR"
93-
echo $PWD
9492
helm package --version "$CHART_VERSION" --app-version $APP_VERSION "$CHARTS_DIR"/*
93+
echo "package done"
9594
find "$CHARTS_DIR" -name values.yaml | xargs -I '{}' \
9695
git checkout '{}'
97-
mkdir ../$UNSTABLE_CHARTS
96+
mkdir $UNSTABLE_CHARTS
97+
echo "move..."
9898
find . -name '*.tgz' -print | while read SRC_FILE; do
9999
DEST_FILE=$(echo $SRC_FILE | sed 's/v/helm-chart-v/g')
100-
mv -v $SRC_FILE ../$UNSTABLE_CHARTS/$DEST_FILE
100+
mv -v $SRC_FILE $UNSTABLE_CHARTS/$DEST_FILE
101101
done
102102
103103
- name: Log In To Registry
@@ -112,7 +112,7 @@ jobs:
112112
# Currently we only publish unstable Helm charts from main/HEAD.
113113
# We have no active cleanup of old unstable charts in place. In
114114
# between new tags unstable chart have the same version, though.
115-
pushd ../$UNSTABLE_CHARTS
115+
pushd $UNSTABLE_CHARTS
116116
for i in ./*.tgz; do
117117
helm push $i oci://${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/helm-charts
118118
done

0 commit comments

Comments
 (0)