From 0a1072ec79553efcd04d803b792992a9b6a2d4aa Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 11 Sep 2019 12:32:55 +0200 Subject: [PATCH] Encode image version into kas-docker on release This interlocks kas-docker with the corresponding kas images. The goal is to avoid surprises because of API changes between kas-docker and the images as well as to allow users to freeze the builder image by using a specific kas-docker version. Signed-off-by: Jan Kiszka --- scripts/release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index 70be67e..32cb768 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -31,9 +31,11 @@ fi mv newchangelog CHANGELOG.md sed -i "s,\(__version__ =\).*,\1 \'$NEW_VERSION\'," kas/__version__.py +sed -i "s,\( KAS_IMAGE_VERSION=\).*,\1\"$NEW_VERSION\"," kas-docker git add CHANGELOG.md git add kas/__version__.py +git add kas-docker git commit -m "Release $NEW_VERSION" git tag -s -m "Release $NEW_VERSION" "$NEW_VERSION"