Skip to content

Commit

Permalink
add ecr login
Browse files Browse the repository at this point in the history
  • Loading branch information
vertefra committed Aug 27, 2024
1 parent 29e4907 commit 7f1d41d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
AWS_ACCOUNT_ID ?= 885886606610
AWS_REGION ?= us-east-2

.PHONY: build
build: schema-build
Expand Down Expand Up @@ -32,9 +34,9 @@ test-unit:
pytest -v --cov=qcog_python_client tests/unit

test-integration:
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com && \
export PYTHONPATH=. && \
export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} && \
export AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} && \
export AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN} && \
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com && \
pytest -v --cov=qcog_python_client tests/integration

0 comments on commit 7f1d41d

Please sign in to comment.