add version check for current version

Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Inteon 2021-07-27 18:11:24 +02:00
parent 6545064fcf
commit fa36a5bc87
No known key found for this signature in database
GPG Key ID: BD5DCF7303C7C1A7

View File

@ -9,9 +9,15 @@ genrule(
genrule(
name = "test_manifests",
srcs = [":git_tags.txt"],
srcs = [
":git_tags.txt",
"//deploy/manifests:cert-manager.yaml",
"//:version",
],
outs = ["test_manifests.tar"],
cmd = """
CURRENT_VERSION=$$(cat $(location //:version))
cp $(location //deploy/manifests:cert-manager.yaml) "$$CURRENT_VERSION.yaml"
for tag in $$(cat $(location :git_tags.txt))
do
# The "v1.2.0-alpha.1" manifest contains duplicate crds, skip for tests