Added latest tag

This commit is contained in:
2024-11-17 17:43:53 +01:00
parent 165fdcae4d
commit 91d726c7f9

View File

@@ -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"