From 91d726c7f9dda8ae60c3a82d05493be37d0ef26d Mon Sep 17 00:00:00 2001 From: Dave Dietrick Date: Sun, 17 Nov 2024 17:43:53 +0100 Subject: [PATCH] Added latest tag --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"