mirror of
https://github.com/antos-rde/antos.git
synced 2025-04-29 12:16:44 +02:00
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
Some checks reported errors
gitea-sync/antos/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
1ba265bd50
commit
54a596872e
7
Makefile
7
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user