Skip to content

Commit

Permalink
Add authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuschel committed Jul 13, 2022
1 parent 850a6ea commit 7aab708
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/ci/functional_test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

from github import Github

from env_helper import TEMP_PATH, REPO_COPY, REPORTS_PATH, DOCKER_REPO
from env_helper import TEMP_PATH, REPO_COPY, REPORTS_PATH, DOCKER_REPO, DOCKER_USER
from s3_helper import S3Helper
from get_robot_token import get_best_robot_token
from get_robot_token import get_best_robot_token, get_parameter_from_ssm
from pr_info import FORCE_TESTS_LABEL, PRInfo
from build_download_helper import download_all_deb_packages
from download_release_packets import download_last_release
Expand Down Expand Up @@ -259,6 +259,13 @@ def parse_args():
)
sys.exit(0)

subprocess.check_output( # pylint: disable=unexpected-keyword-arg
"docker login {} --username '{}' --password-stdin".format(DOCKER_REPO, DOCKER_USER),
input=get_parameter_from_ssm("dockerhub_robot_password"),
encoding="utf-8",
shell=True,
)

image_name = get_image_name(check_name)
docker_image = get_image_with_version(reports_path, image_name)

Expand Down

0 comments on commit 7aab708

Please sign in to comment.