Skip to content

Commit 838ea13

Browse files
fix : added rclone config file in script
1 parent e2d8927 commit 838ea13

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/release-chart.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ REMOTE="oci://harbor.portal.kalisio.com/kalisio/helm"
88
THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}")
99
THIS_PATH=$(dirname "$THIS_FILE")
1010
KARGO_PATH=$(dirname "$THIS_PATH")
11+
RCLONE_CONFIG=$KALISIO_DEVELOPMENT_DIR/development/rclone.dec.conf
1112

1213
# get in root kargo folder
1314
cd "$KARGO_PATH"
@@ -52,13 +53,20 @@ helm dependencies update charts/"$CHART"
5253
helm lint charts/"$CHART"
5354
helm package charts/"$CHART" --destination "$TMP_PATH"
5455

56+
# check if the rclone config file exists
57+
if [ ! -f "$RCLONE_CONFIG" ]; then
58+
echo "$0: rclone config file $RCLONE_CONFIG does not exist"
59+
exit 1
60+
fi
61+
5562
# push on oci registry
5663
helm push "$TMP_PATH"/"$CHART"*.tgz $REMOTE
5764

5865
# and on s3 backup storage (merge index.yaml before pushing)
59-
rclone copy kalisio_charts:index.yaml "$TMP_PATH"
66+
rclone copy --config $KALISIO_DEVELOPMENT_DIR/development/rclone.dec.conf kalisio_charts:index.yaml "$TMP_PATH"
67+
6068
helm repo index "$TMP_PATH" --merge "$TMP_PATH"/index.yaml
61-
rclone copy "$TMP_PATH" kalisio_charts:
69+
rclone copy --config $KALISIO_DEVELOPMENT_DIR/development/rclone.dec.conf "$TMP_PATH" kalisio_charts:
6270

6371
# cleanup
6472
rm -fR "$TMP_PATH"

0 commit comments

Comments
 (0)