mirror of
https://github.com/antos-rde/antos.git
synced 2025-04-29 20:26:45 +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))))
|
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||||
|
TAG:=$(subst master,stable,$(subst refs/heads/,,$(shell git symbolic-ref -q HEAD)))
|
||||||
|
|
||||||
ARCH?=amd64
|
ARCH?=amd64
|
||||||
VERSION?=2.0.0
|
VERSION?=2.0.0-b
|
||||||
BRANCH?=b
|
|
||||||
RUSTUP_HOME?=/opt/rust
|
RUSTUP_HOME?=/opt/rust
|
||||||
CARGO_HOME?=/opt/rust/cargo
|
CARGO_HOME?=/opt/rust/cargo
|
||||||
DESTDIR?=$(ROOT_DIR)/build/
|
DESTDIR?=$(ROOT_DIR)/build/
|
||||||
@ -33,7 +34,7 @@ INSTALL_DIR:=$(DESTDIR)/$(ARCH)/$(BUILD_PREFIX)
|
|||||||
|
|
||||||
BUILDID:=$(shell git rev-parse --short HEAD)
|
BUILDID:=$(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
VERSION_STR=$(VERSION)-$(BRANCH)-$(BUILDID)
|
VERSION_STR=$(VERSION)-$(BUILDID)
|
||||||
PKG_NAME="AntOS_${VERSION_STR}_${ARCH}"
|
PKG_NAME="AntOS_${VERSION_STR}_${ARCH}"
|
||||||
|
|
||||||
all: antos tar.gz
|
all: antos tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user