From 106aeae35f4d6653e5c5cb698a4a301218cbe9e5 Mon Sep 17 00:00:00 2001
From: Bogdan Cochior <bogdan.cochior@thinslices.com>
Date: Mon, 4 Jun 2018 14:58:18 +0300
Subject: [PATCH] ci(aws): add login

---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7fa420e3a..9e90186f4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -96,6 +96,7 @@ demo:aws-qa:
   script:
     - apk --no-cache add --update python python-dev py-pip
     - pip install ecs-deploy
+    - eval $(aws ecr get-login --no-include-email --region eu-west-1 | sed 's|https://||')
     - ecs deploy --region eu-west-1 ${CLUSTER_NAME} ${IMAGE_REPO}:${CI_COMMIT_SHA} --tag ${CI_COMMIT_SHA}
 
 demo:staging:
-- 
GitLab