Fix docker image tagging in ECR
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 21 Sep 2022 18:41:07 +0000 (20:41 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 21 Sep 2022 18:41:07 +0000 (20:41 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
docker/Makefile

index ced950e4a1c1b583120872558e9daecfd700bcbe..b3a9d54bf7bc594945a7a0467fd84246291709f7 100644 (file)
@@ -35,7 +35,7 @@ clean-containers:
 clean: clean-containers clean-images
 
 docker-tag-ecr:
-       docker tag $(PROJECT_NAME)_$(NAME) $(DOCKER_ECR_ACCOUNT_ID).dkr.ecr.$(DOCKER_ECR_REGION).amazonaws.com/$(DOCKER_ECR_REGISTRY_NAME):$(DOCKER_ECR_TAG)
+       docker tag $(PROJECT_NAME)-$(NAME) $(DOCKER_ECR_ACCOUNT_ID).dkr.ecr.$(DOCKER_ECR_REGION).amazonaws.com/$(DOCKER_ECR_REGISTRY_NAME):$(DOCKER_ECR_TAG)
 
 docker-push-ecr: $(NAME)-force docker-tag-ecr
        aws ecr get-login-password --region $(DOCKER_ECR_REGION) | docker login --username AWS --password-stdin $(DOCKER_ECR_ACCOUNT_ID).dkr.ecr.$(DOCKER_ECR_REGION).amazonaws.com/$(DOCKER_ECR_REGISTRY_NAME)