This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 3a90b8a0b bugfix: docker image not showing the correct version (#8323)
3a90b8a0b is described below
commit 3a90b8a0b0c25acc276d3aa9a4d11acd8088c1b8
Author: Klesh Wong <[email protected]>
AuthorDate: Thu Mar 6 16:11:42 2025 +0800
bugfix: docker image not showing the correct version (#8323)
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 2721ab5e2..5e18c2779 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,8 @@
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/
-SHA := $(shell if [ -d .git ]; then git show -s --format=%h; else echo
"default_SHA"; fi)
-TAG := $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo
"default_TAG"; fi)
+SHA ?= $(shell if [ -d .git ]; then git show -s --format=%h; else echo
"unknown_sha"; fi)
+TAG ?= $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo
"local_build"; fi)
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)