Skip to content

Commit

Permalink
fix: version tag (#8083)
Browse files Browse the repository at this point in the history
* fix: version tag

* fix: version tag

* fix: version tag
  • Loading branch information
abeizn authored Sep 20, 2024
1 parent e524ea7 commit 8949c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 git show -s --format=%h 2>/dev/null || echo "default_SHA")
TAG ?= $(shell git tag --points-at HEAD 2>/dev/null || echo "default_TAG")
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)

Expand Down
5 changes: 2 additions & 3 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
# 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 git show -s --format=%h 2>/dev/null || echo "default_SHA")
TAG ?= $(shell git tag --points-at HEAD 2>/dev/null || echo "default_TAG")
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)
PYTHON_DIR ?= "./python"


all: build

go-dep:
Expand Down

0 comments on commit 8949c4f

Please sign in to comment.