Add revcount.
This commit is contained in:
parent
28982b1f81
commit
9de60cc7b0
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
revision := $(shell git rev-parse HEAD | head -c 8)
|
revision := $(shell git rev-parse HEAD | head -c 8)
|
||||||
fullRevision := $(shell git rev-parse HEAD)
|
fullRevision := $(shell git rev-parse HEAD)
|
||||||
|
revcount := $(shell git rev-list --count HEAD)
|
||||||
|
|
||||||
all: env build deploy
|
all: env build deploy
|
||||||
|
|
||||||
|
|
@ -13,3 +14,4 @@ deploy:
|
||||||
env:
|
env:
|
||||||
echo "REVISION='$(revision)'" > .env
|
echo "REVISION='$(revision)'" > .env
|
||||||
echo "FULL_REVISION='$(fullRevision)'" >> .env
|
echo "FULL_REVISION='$(fullRevision)'" >> .env
|
||||||
|
echo "REV_COUNT='$(revcount)'" >> .env
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue