Remote tag check
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 53s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m59s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 6m55s
Deploy Test / Run deploy test suite (pull_request) Successful in 7m0s
Smoke Test / Run basic test suite (pull_request) Successful in 3m38s

This commit is contained in:
Thomas E Lackey 2024-02-23 18:02:11 -06:00
parent a408d24905
commit f06b5ec6a2

View File

@ -33,12 +33,9 @@ def remote_image_exists(local_tag: str, remote_repo_url: str):
docker = DockerClient()
try:
remote_tag = remote_tag_for_image(local_tag, remote_repo_url)
print(f"local tag: {local_tag} ; remote tag: {remote_tag}")
result = docker.manifest.inspect(remote_tag)
print(result)
return True if result else False
except Exception as e: # noqa: E722
print(e)
return False