Skip to content

Commit

Permalink
Update docker_images_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MyroTk authored May 9, 2024
1 parent 310a38b commit e8a9820
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/ci/docker_images_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ def main():
else:
changed_json = TEMP_PATH / "changed_images.json"

docker_user = os.getenv("DOCKERHUB_USERNAME")
docker_pass = os.getenv("DOCKERHUB_PASSWORD")

if args.push:
logging.info('Docker info BEFORE logging in: %s, ', subprocess.check_output( # pylint: disable=unexpected-keyword-arg
"docker info",
Expand All @@ -420,8 +423,8 @@ def main():

logging.info('Doing docker login')
subprocess.check_output( # pylint: disable=unexpected-keyword-arg
f"docker login --username '{os.getenv("DOCKERHUB_USERNAME")}' --password-stdin",
input=os.getenv("DOCKERHUB_PASSWORD"),
f"docker login --username '{docker_user}' --password-stdin",
input=docker_pass,
encoding="utf-8",
shell=True,
)
Expand Down

0 comments on commit e8a9820

Please sign in to comment.