-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Fix /hack/make-helm-chart.sh
#1427
Conversation
sed -i "s/^appVersion:.*/appVersion: \"${TAG}\"/" Chart.yaml | ||
sed -i "s/^version:.*/version: ${TAG:1}/" Chart.yaml | ||
gsed -i "s/^appVersion:.*/appVersion: \"${TAG}\"/" Chart.yaml | ||
gsed -i "s/^version:.*/version: ${TAG:1}/" Chart.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hack
script uses gsed
instead of sed
.
Using gsed
allows us to run sed
commands on both Linux and Mac.
helm package . | ||
helm push onlineboutique-$TAG.tgz oci://$HELM_CHART_REPO | ||
helm push onlineboutique-${TAG:1}.tgz oci://$HELM_CHART_REPO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TAG
environment variable's value looks like: v0.5.1
.
Using ${TAG:1}
means that we remove the v
— leaving us with 0.5.1
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
🚲 PR staged at http://35.238.49.121 |
Thanks for the quick review/approva, @mathieu-benoit! :) |
Background
make-helm-chart.sh
is run when a maintainer creates a new release of Online Boutique.make-helm-chart.sh
bumps up the version of the Helm Chart published atoci://us-docker.pkg.dev/online-boutique-ci/charts/onlineboutique
.make-helm-chart.sh
.Change Summary
Testing Procedure