Add a job to verify the login to Docker Hub

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
Benoit Donneaux 2024-12-10 10:47:18 +01:00
parent e24b9ec0e8
commit 0f9fd938d6

View File

@ -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