diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2020-12-02 17:33:09 +0300 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2020-12-02 17:33:09 +0300 |
commit | 783cdc2a3d99bd9fb8d75218d679ddb571420e98 (patch) | |
tree | 3087b448ec642adeac5802239a0966e75d417f74 | |
parent | d3796d1fb7008629a8fa505481dab96efe60cbdb (diff) | |
download | unit-783cdc2a3d99bd9fb8d75218d679ddb571420e98.tar.gz unit-783cdc2a3d99bd9fb8d75218d679ddb571420e98.tar.bz2 |
Docker: creating tags and pushing to AWS ECR as well.
Diffstat (limited to '')
-rw-r--r-- | pkg/docker/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
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) |