ci: Replace docker/login-action with retry-wrapped docker login for DockerHub (#28442)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Matsu 2026-04-14 11:44:12 +03:00 committed by GitHub
parent bd9713bd67
commit d496f6f1bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,10 +39,13 @@ runs:
- name: Login to DockerHub
if: inputs.login-dockerhub == 'true'
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
username: ${{ inputs.dockerhub-username }}
password: ${{ inputs.dockerhub-password }}
shell: bash
env:
DOCKER_USER: ${{ inputs.dockerhub-username }}
DOCKER_PASS: ${{ inputs.dockerhub-password }}
run: |
node .github/scripts/retry.mjs --attempts 3 --delay 10 \
'echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin'
- name: Login to DHI Registry
if: inputs.login-dhi == 'true'