Fix typo and improve variable name

pull/36695/head
Arjan Bal 10 months ago
parent e86419df7f
commit 7c6c321f71
  1. 6
      tools/interop_matrix/create_matrix_images.py

@ -411,10 +411,10 @@ for lang in languages:
assert image.startswith(args.gcr_path) and image.find(":") != -1
# Add a tag to exclude the image from the GCP Vulnerability Scanner.
(image_name, tag_name) = image.rsplit(":", 1)
alternate_image_name = f"{image_name}:infrastructure-public-image-{tag_name}"
subprocess.call(["docker", "image" "tag", image, alternate_image_name])
alternate_image = f"{image_name}:infrastructure-public-image-{tag_name}"
subprocess.call(["docker", "image", "tag", image, alternate_image])
subprocess.call(["gcloud", "docker", "--", "push", image])
subprocess.call(["gcloud", "docker", "--", "push", alternate_image_name])
subprocess.call(["gcloud", "docker", "--", "push", alternate_image])
else:
# Uploading (and overwriting images) by default can easily break things.
print(

Loading…
Cancel
Save