From c1fffce982560f38b5ee11a6e67925b629a0bef4 Mon Sep 17 00:00:00 2001 From: Bogdan Cochior <bogdan.cochior@thinslices.com> Date: Fri, 18 May 2018 13:49:35 +0300 Subject: [PATCH] ci: change name of the image repository --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b5451ca4..06f341ba5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,13 +15,15 @@ build-aws: stage: build services: - docker:dind + variables: + IMAGE_REPO: faraday-qa before_script: - apk add --no-cache curl jq python py-pip - pip install awscli script: - eval $(aws ecr get-login --no-include-email --region eu-west-1 | sed 's|https://||') - - docker build -t $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA . - - docker tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA $REPOSITORY_URL:latest + - docker build -t $IMAGE_REPO:$CI_COMMIT_SHA . + - docker tag $IMAGE_REPO:$CI_COMMIT_SHA $REPOSITORY_URL:latest - docker push $REPOSITORY_URL:latest build: -- GitLab