From a47b57addba1d1200eb2cc9419a8289a825943ef Mon Sep 17 00:00:00 2001 From: lambda Date: Tue, 28 Nov 2023 10:16:22 +0300 Subject: [PATCH] Use tags in image naming --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ac042a..7ea3077 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ STORAGE_URL = gitea.bjornmossa.net IMAGE_NAME = $(STORAGE_URL)/radioiceberg/icecast -GIT_TAG = $(shell git describe --tags) +GIT_TAG = $(shell git describe --abbrev=0 --tags) login: docker login $(STORAGE_URL) @@ -9,7 +9,7 @@ build: docker build . -t $(IMAGE_NAME):$(GIT_TAG) bump-latest: - docker tag ${IMAGE_name}:${GIT_TAG} ${IMAGE_NAME}:latest + docker tag $(IMAGE_NAME):$(GIT_TAG) $(IMAGE_NAME):latest push-current: login docker push $(IMAGE_NAME):$(GIT_TAG)