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

Modify sed command matching rule while updating version in Chart.yaml #194

Merged
merged 2 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion build/yamls/collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: ipfix-collector
version: 0.6.0
version: 0.0.0
4 changes: 0 additions & 4 deletions hack/generate-manifest-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ if [ "$MODE" == "dev" ]; then
fi

if [ "$MODE" == "release" ]; then
# update the Chart version
version=$(sed -n 's/v\(.*\)-dev/\1/p' $THIS_DIR/../VERSION)
sed -i.bak -e "s/^version.*/version: ${version}/g" Chart.yaml
rm "Chart.yaml.bak"
# replace the line starting with "image_tag", and create a backup of the original one
sed -i.bak -e "s/^image_tag.*/image_tag: $IMG_TAG/g" values.yaml

Expand Down