Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(helm): no duplicates in helm chart package #6512

Merged
merged 5 commits into from
Apr 12, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tools/releases/helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ function package {
--package-path "${CHARTS_PACKAGE_PATH}" \
"${dir}"

# repackage archive to remove potential duplicates
for f in "${CHARTS_PACKAGE_PATH}"/*.tgz; do
local tmpdir
tmpdir=$(mktemp --directory)

tar -xzf "${f}" --directory "${tmpdir}"

tar -czvf "${f}" \
--directory "${tmpdir}" \
--owner 0 \
--group 0 \
--no-same-owner \
bartsmykla marked this conversation as resolved.
Show resolved Hide resolved
--no-same-permissions \
"$(basename "${dir}")"
done

# Restore files removed above
git checkout -- "${dir}"
done
Expand Down