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

Sign the chart [ONPREM-440] #64

Merged
merged 4 commits into from
Jul 12, 2024
Merged
Changes from 1 commit
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
Next Next commit
Add ability to the do package command to sign the chart
christian-stephen committed Jul 11, 2024
commit 5170d6c95196bbeb5f77498d8e617348c5b866eb
16 changes: 14 additions & 2 deletions do
Original file line number Diff line number Diff line change
@@ -27,10 +27,22 @@ check-version-bump() {
help_package="Package the Helm chart"
package() {
mkdir -p target
cd target
cd target || return
christian-stephen marked this conversation as resolved.
Show resolved Hide resolved

local arg="${1:-}"

echo 'Package Helm chart'
helm package ..
case ${arg} in
"sign")
echo 'Sign Helm chart'
helm package --sign --key "${GPG_ID:?required}" ..
echo 'Verify Helm chart signature'
helm verify ./container-agent-*.tgz
;;
*)
helm package ..
;;
esac

echo 'Check contents of Helm package'
ls .