diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a13dbfc..244b92a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,9 +16,9 @@ build: before_script: - amazon-linux-extras install docker script: | - docker build -t $DOCKER_REGISTRY/$REPOSITORY_NAME:$CI_PIPELINE_ID . + docker build -t $DOCKER_REGISTRY/$REPOSITORY_NAME:$CI_PIPELINE_ID -t $DOCKER_REGISTRY/$REPOSITORY_NAME:latest . aws ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_REGISTRY - docker push $DOCKER_REGISTRY/$REPOSITORY_NAME:$CI_PIPELINE_ID + docker push $DOCKER_REGISTRY/$REPOSITORY_NAME --all-tags # variables: # SERVICE_NAME: "docs"