docker-login-action/__tests__
Naush Korai 47690b2d19 Add retry logic for transient login failures
Adds configurable retry mechanism with basic exponential backoff to handle intermittent failures when authenticating to container registries, particularly GCP (GAR/GCR) where I'm seeing errors intermittently.

- Add retry-attempts input (default: 0 for backward compatibility, making it opt in)
- Add retry-delay input (default: 5000ms)
- Implement exponential backoff retry logic in docker login
  - Chose to just write a simple retry function vs. going with a library
- Retry all errors except 5xxs
  - I'm seeing intermittent 401 failures
- Add tests for retry behavior
- Update README with new input parameters

Signed-off-by: Naush Korai <naush.korai@mixpanel.com>
2026-01-30 13:46:27 -05:00
..
aws.test.ts feat: add support for AWS European Sovereign Cloud ECR registries 2026-01-13 16:53:08 +01:00
context.test.ts test: fix tests after toolkit update 2023-09-09 18:16:41 +02:00
docker.test.ts Add retry logic for transient login failures 2026-01-30 13:46:27 -05:00