From 8bb33a15a22bf010d5c4f6fb592e41db68f01a86 Mon Sep 17 00:00:00 2001 From: Bogdan Cochior <bogdan.cochior@thinslices.com> Date: Tue, 5 Jun 2018 09:06:29 +0300 Subject: [PATCH] ci(aws): change image url --- .gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 93a6a9432..7bf945c24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,11 +35,9 @@ build: - CERT=`aws ecr get-login --no-include-email --region ${AWS_REGION}` - ${CERT} # Build - - docker build -t ${CI_PROJECT_NAME} . - - docker tag $CI_PROJECT_NAME:latest $REPO/$IMAGE_TAG - - docker tag $CI_PROJECT_NAME:latest $REPO/${CI_PROJECT_NAME}:latest - - docker push $REPO/$IMAGE_TAG - - docker push $REPO/${CI_PROJECT_NAME}:latest + - docker build -t ${CI_PROJECT_NAME}:$CI_COMMIT_SHA . + - docker tag $CI_PROJECT_NAME:$CI_COMMIT_SHA $REPO:latest + - docker push $REPO:latest environment: name: staging -- GitLab