Skip to content

Commit

Permalink
Set correct versions in the helm push command
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vitaliy committed May 30, 2024
1 parent c0d3306 commit c50e9c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_helm_chart/build_chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ else
fi;


sed -i "s/appVersion: 0.0.0/appVersion: \"${appVersion:1}\"/" Chart.yaml
sed -i "s/appVersion: 0.0.0/appVersion: \"$appVersion\"/" Chart.yaml
sed -i "s/^version: .*/version: \"$chartVersion\"/" Chart.yaml

cat Chart.yaml

helm package .
echo "$REPO_TOKEN" | helm registry login "$REPO_ADDRESS" --username "$REPO_LOGIN" --password-stdin
echo "oci://$REPO_ADDRESS/helm/"
helm push "$APPLICATION-$appVersion.tgz" "oci://$REPO_ADDRESS/helm/"
helm push "$APPLICATION-$chartVersion.tgz" "oci://$REPO_ADDRESS/helm/"

0 comments on commit c50e9c9

Please sign in to comment.