Skip to content

Instantly share code, notes, and snippets.

@apolzek
Created July 25, 2021 20:25
Show Gist options
  • Save apolzek/03c53fed0d0385bc31215f536da55d0d to your computer and use it in GitHub Desktop.
Save apolzek/03c53fed0d0385bc31215f536da55d0d to your computer and use it in GitHub Desktop.
Replace version Helm Chart with sed
sed -i "s/^version:.*$/version: $(git describe)/" chart/Chart.yaml
sed -i "s/^appVersion:.*$/appVersion: $(git describe)/" chart/Chart.yaml
helm upgrade app ./chart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment