From 94e3a20bdbd2a9a438cb9d93db4fd2c346412924 Mon Sep 17 00:00:00 2001 From: lambda Date: Tue, 28 Nov 2023 09:56:34 +0300 Subject: [PATCH] Use git tag in builded image --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f36299..2786ea9 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ STORAGE_URL = gitea.bjornmossa.net IMAGE_NAME = $(STORAGE_URL)/radioiceberg/icecast +GIT_TAG = $(shell git describe --tags) login: docker login $(STORAGE_URL) build: - docker build . -t $(IMAGE_NAME) + docker build . -t $(IMAGE_NAME):$(GIT_TAG) push: login docker push $(IMAGE_NAME)