Skip to content

Commit ad901a3

Browse files
committed
hack: update version for building docker image and tgz (#11)
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 6f5564e commit ad901a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/build_linux_musa.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ echo "TARGET: $TARGET"
2020
echo "Platform: $OS/$ARCH"
2121

2222
# Set up environment variables (similar to setup-environment job)
23-
VERSION=${VERSION:-$(git describe --tags --first-parent --abbrev=7 --long --dirty --always | sed -e "s/^v//g")}
23+
VERSION=${VERSION:-$(git describe --tags --first-parent --abbrev=7 --always | sed -e "s/^v//g")}
2424
GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\" \"-X=github.com/ollama/ollama/server.mode=release\"'"
2525

2626
echo "VERSION: $VERSION"

scripts/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Common environment setup across build*.sh scripts
22

3-
export VERSION=${VERSION:-$(git describe --tags --first-parent --abbrev=7 --long --dirty --always | sed -e "s/^v//g")}
3+
export VERSION=${VERSION:-$(git describe --tags --first-parent --abbrev=7 --always | sed -e "s/^v//g")}
44
export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\" \"-X=github.com/ollama/ollama/server.mode=release\"'"
55
# TODO - consider `docker buildx ls --format=json` to autodiscover platform capability
66
PLATFORM=${PLATFORM:-"linux/arm64,linux/amd64"}

0 commit comments

Comments
 (0)