Skip to content

Commit

Permalink
fix: empty version (#6474)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh authored Nov 16, 2023
1 parent b6d8d8a commit 7cc6c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/

SHA = $(shell git show -s --format=%h)
SHA ?= $(shell git show -s --format=%h)
TAG ?= $(shell git tag --points-at HEAD)
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)
Expand All @@ -44,7 +44,7 @@ build-plugin:
scripts/build-plugins.sh

build-server: swag
scripts/build-server.sh
VERSION=$(VERSION) scripts/build-server.sh

build-python: #don't mix this with the other build commands
scripts/build-python.sh
Expand Down
2 changes: 2 additions & 0 deletions backend/scripts/build-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

set -e

echo build-server.sh VERSION: $VERSION

ROOT_DIR=$(dirname $(dirname "$0"))
VERSION=${VERSION:-$(git describe --tags --always --dirty || true)}
EXTRA=""
Expand Down

0 comments on commit 7cc6c04

Please sign in to comment.