mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 19:10:21 +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
|
fi
|
||||||
|
|
||||||
mkdir -p "${CHARTDIR}/csi-charts/docs/${PACKAGE}"
|
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
|
pushd "${CHARTDIR}/csi-charts/docs/${PACKAGE}" >/dev/null
|
||||||
helm package "ceph-csi-${PACKAGE}"
|
helm package "ceph-csi-${PACKAGE}"
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user