From 5144c18fc5ebf60bbe81aa4d0fb29c507b6f1ff8 Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Wed, 30 Jan 2019 18:02:14 +0000 Subject: [PATCH] Fix makefile prepare_release --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9c3da69682..466ad5ef10 100644 --- a/Makefile +++ b/Makefile @@ -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)