Skip to content

Commit

Permalink
chore: use amazon ecr credential helper in windows appveyor (#5446)
Browse files Browse the repository at this point in the history
  • Loading branch information
moelasmar authored Jul 5, 2023
1 parent 2c9a939 commit 025357d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion appveyor-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,14 @@ install:
# Echo final Path
- "echo %PATH%"

- "IF DEFINED BY_CANARY ECHO Logging in Public ECR && aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws"
# use amazon-ecr-credential-helper
- choco install amazon-ecr-credential-helper
- ps: "
$docker_config = Get-Content $env:HOME/.docker/config.json -raw | ConvertFrom-Json;
$docker_config.credsStore = 'ecr-login';
$docker_config | ConvertTo-Json | set-content $env:HOME/.docker/config.json;
"
- ps: "get-content $env:HOME/.docker/config.json"

# claim some disk space before starting the tests
- "docker system prune -a -f"
Expand Down

0 comments on commit 025357d

Please sign in to comment.