From 0f9fd938d6ff372615b3952dcf6c75eb5493705e Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Tue, 10 Dec 2024 10:47:18 +0100 Subject: [PATCH] Add a job to verify the login to Docker Hub Signed-off-by: Benoit Donneaux --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6377ece0b..69f9c300d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -154,6 +154,8 @@ workflows: # this requirement is enough to require every Windows Server 2022 # job. - "windows-server-2022" + - "dockerhub-login": + <<: *DOCKERHUB_CONTEXT images: <<: *IMAGES @@ -162,6 +164,15 @@ workflows: when: "<< pipeline.parameters.build-images >>" jobs: + dockerhub-login: + machine: + image: ubuntu-2404:current + working_directory: "/tmp/project" + steps: + - run: | + echo "Username: $DOCKERHUB_USERNAME" + docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD" + finish-coverage-report: docker: - <<: *DOCKERHUB_AUTH