From 783cdc2a3d99bd9fb8d75218d679ddb571420e98 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Wed, 2 Dec 2020 17:33:09 +0300 Subject: [PATCH] Docker: creating tags and pushing to AWS ECR as well. --- pkg/docker/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile index aed5b8f7..3b6c2720 100644 --- a/pkg/docker/Makefile +++ b/pkg/docker/Makefile @@ -55,13 +55,17 @@ build-%: Dockerfile.% tag-%: build-% docker tag unit:$(VERSION)-$* nginx/unit:$(VERSION)-$* + docker tag unit:$(VERSION)-$* public.ecr.aws/nginx/unit:$(VERSION)-$* push-%: tag-% docker push nginx/unit:$(VERSION)-$* + docker push public.ecr.aws/nginx/unit:$(VERSION)-$* latest: docker tag nginx/unit:$(VERSION)-full nginx/unit:latest + docker tag nginx/unit:$(VERSION)-full public.ecr.aws/nginx/unit:latest docker push nginx/unit:latest + docker push public.ecr.aws/nginx/unit:latest refresh-base: docker pull $(shell head -n 1 Dockerfile.tmpl | cut -d' ' -f 2)