From 888ff2ec4751a7d0629f0d6ea2a8cc8cdefb11e5 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 21 Mar 2024 09:20:58 +0100 Subject: [PATCH] chore: generate tag before building docker image --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 35884fa..fcea8bd 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ build: CGO_ENABLED=0 go build -v -o bin/fake-smtp ./cmd/fake-smtp docker-image: + git tag -a $(MKT_PROJECT_VERSION) -m "v$(MKT_PROJECT_VERSION)" || exit 0 docker build \ --build-arg HTTP_PROXY=$(HTTP_PROXY) \ --build-arg HTTPS_PROXY=$(HTTPS_PROXY) \