tasks.py: Specify release verion in manifests
It seems that commit removed
helm support but helm was also used to generate manifests/metallb.yaml.
Therefore, the manifests are not updated with the new release version
for the container images.
This patch fixes that by just adding a replace in the release script.
@@ -297,6 +297,10 @@ def release(ctx, version, skip_release_notes=False):
# Update the version listed on the website sidebar
run("perl -pi -e 's/MetalLB .*/MetalLB v{}/g' website/content/_header.md".format(version), echo=True)
+ # Update the manifests with the new version
+ run("perl -pi -e 's,image: metallb/speaker:.*,image: metallb/speaker:v{},g' manifests/metallb.yaml".format(version), echo=True)
+ run("perl -pi -e 's,image: metallb/controller:.*,image: metallb/controller:v{},g' manifests/metallb.yaml".format(version), echo=True)
+
# Update the version embedded in the binary
run("perl -pi -e 's/version\s+=.*/version = \"{}\"/g' internal/version/version.go".format(version), echo=True)
run("gofmt -w internal/version/version.go", echo=True)
