feat: add TAG to makefile, reserved for docker build later
Some checks reported errors
gitea-sync/antos/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
DanyLE 2024-03-10 16:36:43 +01:00
parent 1ba265bd50
commit 54a596872e

View File

@ -1,9 +1,10 @@
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TAG:=$(subst master,stable,$(subst refs/heads/,,$(shell git symbolic-ref -q HEAD)))
ARCH?=amd64
VERSION?=2.0.0
BRANCH?=b
VERSION?=2.0.0-b
RUSTUP_HOME?=/opt/rust
CARGO_HOME?=/opt/rust/cargo
DESTDIR?=$(ROOT_DIR)/build/
@ -33,7 +34,7 @@ INSTALL_DIR:=$(DESTDIR)/$(ARCH)/$(BUILD_PREFIX)
BUILDID:=$(shell git rev-parse --short HEAD)
VERSION_STR=$(VERSION)-$(BRANCH)-$(BUILDID)
VERSION_STR=$(VERSION)-$(BUILDID)
PKG_NAME="AntOS_${VERSION_STR}_${ARCH}"
all: antos tar.gz