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 <jan.kiszka@siemens.com>
This commit is contained in:
parent
dbde2a75fc
commit
0a1072ec79
@ -31,9 +31,11 @@ fi
|
|||||||
|
|
||||||
mv newchangelog CHANGELOG.md
|
mv newchangelog CHANGELOG.md
|
||||||
sed -i "s,\(__version__ =\).*,\1 \'$NEW_VERSION\'," kas/__version__.py
|
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 CHANGELOG.md
|
||||||
git add kas/__version__.py
|
git add kas/__version__.py
|
||||||
|
git add kas-docker
|
||||||
|
|
||||||
git commit -m "Release $NEW_VERSION"
|
git commit -m "Release $NEW_VERSION"
|
||||||
git tag -s -m "Release $NEW_VERSION" "$NEW_VERSION"
|
git tag -s -m "Release $NEW_VERSION" "$NEW_VERSION"
|
||||||
|
Loading…
Reference in New Issue
Block a user