Docker: creating tags and pushing to AWS ECR as well.

This commit is contained in:
Konstantin Pavlov
2020-12-02 17:33:09 +03:00
parent d3796d1fb7
commit 783cdc2a3d

View File

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