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

Fix /hack/make-helm-chart.sh #1427

Merged
merged 1 commit into from
Dec 22, 2022
Merged

Fix /hack/make-helm-chart.sh #1427

merged 1 commit into from
Dec 22, 2022

Conversation

NimJay
Copy link
Collaborator

@NimJay NimJay commented Dec 22, 2022

Background

Change Summary

  • See the comments I've made in the file changes.

Testing Procedure

  • No testing from reviewer required.
  • These changes were tested when I did the previous release of Online Boutique.

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
Copy link
Collaborator Author

@NimJay NimJay Dec 22, 2022

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
Copy link
Collaborator Author

@NimJay NimJay Dec 22, 2022

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@github-actions
Copy link

🚲 PR staged at http://35.238.49.121

@NimJay
Copy link
Collaborator Author

NimJay commented Dec 22, 2022

Thanks for the quick review/approva, @mathieu-benoit! :)

@NimJay NimJay merged commit d86c02f into main Dec 22, 2022
@NimJay NimJay deleted the nimjay-fix-release-script branch December 22, 2022 17:51
D-Mwanth pushed a commit to D-Mwanth/microservices-demo that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants