From 1ad0effd797876f8b556e0752aa8c132bec6dea6 Mon Sep 17 00:00:00 2001 From: Vladimir Osintsev Date: Fri, 3 Apr 2020 17:32:46 +0300 Subject: [PATCH] Fixes --- Makefile | 4 ++++ hooks/build | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5f992ed..1532246 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,10 @@ docker_build: docker_tag: docker tag $(DOCKER_IMAGE):$(DOCKER_TAG) $(DOCKER_IMAGE):latest +docker_tag: + docker tag $(DOCKER_IMAGE):$(GIT_COMMIT) $(DOCKER_IMAGE):$(DOCKER_TAG) + docker tag $(DOCKER_IMAGE):$(DOCKER_TAG) $(DOCKER_IMAGE):latest + docker_push: docker push $(DOCKER_IMAGE):latest docker push $(DOCKER_IMAGE):$(DOCKER_TAG) diff --git a/hooks/build b/hooks/build index d087e83..019bbae 100755 --- a/hooks/build +++ b/hooks/build @@ -1,3 +1,3 @@ #!/bin/sh -make release +make build && make release