mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 10: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>
(cherry picked from commit 9d46478794
)
This commit is contained in:
parent
04879bbb33
commit
468c73d2b6
@ -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