Pull new image each time

This commit is contained in:
alesapin 2021-09-30 16:20:08 +03:00
parent 1df70af14e
commit 7a27ce7242

View File

@ -121,6 +121,15 @@ if __name__ == "__main__":
docker_image += ':' + images['clickhouse/style-test']
logging.info("Got docker image %s", docker_image)
for i in range(10):
try:
subprocess.check_output(f"docker pull {docker_image}", shell=True)
break
except Exception as ex:
time.sleep(i * 3)
logging.info("Got execption pulling docker %s", ex)
else:
raise Exception(f"Cannot pull dockerhub for image {docker_image}")
if not aws_secret_key_id or not aws_secret_key:
logging.info("No secrets, will not upload anything to S3")