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

Commit e34d13c

Browse files
committed
Update makefile release task
1 parent eb18092 commit e34d13c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,14 @@ ifndef VERSION
191191
$(error VERSION is undefined)
192192
endif
193193
# replace wing version in terraform
194-
sed -i 's/Environment=WING_VERSION=.*$$/Environment=WING_VERSION=$(VERSION)/g' terraform/amazon/tools/templates/bastion_user_data.yaml terraform/amazon/kubernetes/templates/puppet_agent_user_data.yaml
194+
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
195195
# replace major version in docs
196196
sed -i 's#^version = u.*$$#version = u"$(shell echo "$(VERSION)" | grep -oe "^[0-9]\{1,\}\\.[0-9]\{1,\}")"#g' docs/conf.py
197197
sed -i 's#^release = u.*$$#release = u"$(shell echo "$(VERSION)" | grep -oe "^[0-9]\{1,\}\\.[0-9]\{1,\}")"#g' docs/conf.py
198198
# replace version in README
199199
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
200200
sed -i 's/mv tarmak_.*$$/mv tarmak_$(VERSION)_linux_amd64 tarmak/g' README.md
201-
# replace version in Dockerfile
202-
sed -i 's#^ENV TARMAK_VERSION .*$$#ENV TARMAK_VERSION $(VERSION)#g' terraform/Dockerfile
203-
git add -p terraform/Dockerfile docs/conf.py terraform/amazon/tools/templates/bastion_user_data.yaml terraform/amazon/kubernetes/templates/puppet_agent_user_data.yaml README.md
201+
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
204202
git commit -m "Release $(VERSION)"
205203
git tag $(VERSION)
206204

0 commit comments

Comments
 (0)