1
0
Fork 0
mirror of https://github.com/docker/login-action.git synced 2025-03-29 10:10:05 +01:00
Commit graph

12 commits

Author SHA1 Message Date
Helen Lim
a98cecd3e7 feature: Support multi reagion login for AWS ECR
This adds support for allowing AWS ECR logins via multiple regions.

Functionality is quite similar to the existing support for multi-AWS
accounts. This adds in a new valid environment variable `AWS_REGIONS`
that can additionally be used to run the login against multiple regions.

Main changes are in `aws.ts` where `getRegion` is replaced by
`getRegions` which will construct and return a list rather than a
string. Since `getRegistriesData` already returns `regDatas` in a list
due to its support for multi-aws-accounts, all I really needed to add
was a `for-loop` wrapper to iterate on regions around the existing loop
that iterates on account IDs.

Signed-off-by: Helen Lim <hlim2@atlassian.com>
2025-02-28 11:42:01 -05:00
CrazyMax
0e7803459f
test: fix tests after toolkit update
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-09-09 18:16:41 +02:00
CrazyMax
4b59a429db
update to node 16
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-28 08:29:00 +01:00
Markus Maga
58855695bb
refactor: use v3 sdk
Signed-off-by: Markus Maga <markus@maga.se>
2021-12-20 13:46:08 +01:00
CrazyMax
faae4d6665
ecr: switch implementation to use the AWS SDK
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-20 10:43:26 +01:00
CrazyMax
73cda5dad9
Update dev deps
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-06 20:24:15 +02:00
CrazyMax
24646ef465
Get AccountID from registry URL and handle ECR registry through regexp
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-17 20:22:02 +01:00
CrazyMax
1e75de0e0e
Add support for public ECR
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-11 07:15:35 +01:00
CrazyMax
a5ba64f65e
Fix tests 2020-08-21 16:33:18 +02:00
CrazyMax
e56233ce43
Add example for Azure Container Registry (ACR) 2020-08-21 16:29:54 +02:00
CrazyMax
04f461cc60
Fix tests 2020-08-21 14:56:11 +02:00
CrazyMax
25aa6aa30c
Check AWS CLI version
Add tests
2020-08-21 14:45:16 +02:00