Skip to content

Commit e6266eb

Browse files
authored
Add docker-ecr-auth rule to testing Makefile (#47)
Issue #, if available: Description of changes: Add `docker-ecr-auth` rule to testing Makefile By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 83a3ffe commit e6266eb

File tree

1 file changed

+5
-0
lines changed
  • test/e2e/resources/lambda_function

1 file changed

+5
-0
lines changed

test/e2e/resources/lambda_function/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ publish-image:
1414
create-ecr-repository:
1515
aws ecr create-repository --region $(AWS_REGION) --repository-name $(ECR_REPOSITORY) >/dev/null
1616

17+
docker-ecr-auth:
18+
aws ecr get-login-password --region us-west-2 | \
19+
docker login --username AWS --password-stdin\
20+
$(AWS_ACCOUNT_ID).dkr.ecr.us-west-2.amazonaws.com
21+
1722
all: build-image publish-image

0 commit comments

Comments
 (0)