Skip to content

Commit

Permalink
Update appveyor.yml to log into ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
hawflau committed Jun 30, 2021
1 parent 3ce48dc commit e948298
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions appveyor.yml
Expand Up @@ -183,10 +183,9 @@ for:
- "mypy setup.py samcli tests"
- "pytest -n 4 tests/functional"

# Runs only in Linux, logging docker hub when running canary and docker cred is available
- sh: "
if [[ -n $BY_CANARY ]] && [[ -n $DOCKER_USER ]] && [[ -n $DOCKER_PASS ]];
then echo Logging in Docker Hub; echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin;
if [[ -n $BY_CANARY ]];
then echo Logging in ECR; aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws;
fi"
- sh: "pytest -vv tests/integration"
- sh: "pytest -vv tests/regression"
Expand Down

0 comments on commit e948298

Please sign in to comment.