mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 11:50:18 +00:00
ci: use resync to sync helm charts
When a file on source is deleted same need to be deleted on the destination, with rsync we can achieve it. fixes: #3329 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
71dbc7dbb4
commit
9d46478794
@ -77,7 +77,8 @@ push_helm_charts() {
|
||||
fi
|
||||
|
||||
mkdir -p "${CHARTDIR}/csi-charts/docs/${PACKAGE}"
|
||||
cp -R "./charts/ceph-csi-${PACKAGE}" "${CHARTDIR}/csi-charts/docs/${PACKAGE}"
|
||||
# Use rsync to remove files from destination when source file is deleted.
|
||||
rsync -avh "./charts/ceph-csi-${PACKAGE}" "${CHARTDIR}/csi-charts/docs/${PACKAGE}" --delete
|
||||
pushd "${CHARTDIR}/csi-charts/docs/${PACKAGE}" >/dev/null
|
||||
helm package "ceph-csi-${PACKAGE}"
|
||||
popd >/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user