File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ REMOTE="oci://harbor.portal.kalisio.com/kalisio/helm"
88THIS_FILE=$( readlink -f " ${BASH_SOURCE[0]} " )
99THIS_PATH=$( dirname " $THIS_FILE " )
1010KARGO_PATH=$( dirname " $THIS_PATH " )
11+ RCLONE_CONFIG=$KALISIO_DEVELOPMENT_DIR /development/rclone.dec.conf
1112
1213# get in root kargo folder
1314cd " $KARGO_PATH "
@@ -52,13 +53,20 @@ helm dependencies update charts/"$CHART"
5253helm lint charts/" $CHART "
5354helm 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
5663helm 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+
6068helm 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
6472rm -fR " $TMP_PATH "
You can’t perform that action at this time.
0 commit comments