Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix makefile prepare_release
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Jan 30, 2019
1 parent 72c9d26 commit 5144c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ ifndef VERSION
$(error VERSION is undefined)
endif
# replace wing version in terraform
sed -i 's/Environment=WING_VERSION=[[:digit:]].*$$/Environment=WING_VERSION=$(VERSION)/g' terraform/amazon/modules/bastion/templates/bastion_user_data.yaml terraform/amazon/templates/puppet_agent_user_data.yaml.template
sed -i 's/Environment=WING_VERSION=[[:digit:]].*$$/Environment=WING_VERSION=$(VERSION)/g' terraform/amazon/templates/bastion_user_data.yaml.template terraform/amazon/templates/puppet_agent_user_data.yaml.template
# replace major version in docs
sed -i 's#^version = u.*$$#version = u"$(shell echo "$(VERSION)" | grep -oe "^[0-9]\{1,\}\\.[0-9]\{1,\}")"#g' docs/conf.py
sed -i 's#^release = u.*$$#release = u"$(shell echo "$(VERSION)" | grep -oe "^[0-9]\{1,\}\\.[0-9]\{1,\}")"#g' docs/conf.py
# replace version in README
sed -i 's#wget https://github.com/jetstack/tarmak/releases/download/.*$$#wget https://github.com/jetstack/tarmak/releases/download/$(VERSION)/tarmak_$(VERSION)_linux_amd64#g' README.md
sed -i 's/mv tarmak_.*$$/mv tarmak_$(VERSION)_linux_amd64 tarmak/g' README.md
git add -p docs/conf.py terraform/amazon/modules/bastion/templates/bastion_user_data.yaml terraform/amazon/templates/puppet_agent_user_data.yaml.template README.md
git add -p docs/conf.py terraform/amazon/templates/bastion_user_data.yaml.template terraform/amazon/templates/puppet_agent_user_data.yaml.template README.md
git commit -m "Release $(VERSION)"
git tag $(VERSION)

Expand Down

0 comments on commit 5144c18

Please sign in to comment.