Add PROJECT_NAME and VERSION

Add PROJECT_NAME and VERSION variables to Makefile.
This commit is contained in:
ducoterra
2021-11-02 11:46:53 -04:00
parent 9d0c9c6388
commit d86b5052a8

View File

@@ -1,6 +1,8 @@
SHELL := /bin/bash
IMAGE ?= $(shell cat IMAGE):$(shell cat VERSION)
PROJECT_NAME ?= $(shell git config --local remote.origin.url|sed -n 's#.*/\([^.]*\)\.git#\1#p')
VERSION ?= $(shell cat VERSION)
IMAGE ?= $(shell cat IMAGE):$(VERSION)
IMAGE_LATEST ?= $(shell cat IMAGE):latest
PWD ?= $(shell pwd)
STASH ?= "common-update-stash"