Skip to content

Commit ca8b887

Browse files
authored
fix: try fixing docker image not showing the correct version (#8436)
1 parent e478bd5 commit ca8b887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# https://stackoverflow.com/questions/920413/make-error-missing-separator
1818
# https://tutorialedge.net/golang/makefiles-for-go-developers/
1919

20-
SHA := $(shell if [ -d .git ]; then git show -s --format=%h; else echo "default_SHA"; fi)
21-
TAG := $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo "default_TAG"; fi)
20+
SHA ?= $(shell if [ -d .git ]; then git show -s --format=%h; else echo "unknown_sha"; fi)
21+
TAG ?= $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo "local_build"; fi)
2222
IMAGE_REPO ?= "apache"
2323
VERSION = $(TAG)@$(SHA)
2424
PYTHON_DIR ?= "./python"

0 commit comments

Comments
 (0)