Add revcount.

This commit is contained in:
Benjamin A. Shelton 2026-11-25 22:59:39 -07:00
commit 9de60cc7b0
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -1,6 +1,7 @@
revision := $(shell git rev-parse HEAD | head -c 8)
fullRevision := $(shell git rev-parse HEAD)
revcount := $(shell git rev-list --count HEAD)
all: env build deploy
@ -13,3 +14,4 @@ deploy:
env:
echo "REVISION='$(revision)'" > .env
echo "FULL_REVISION='$(fullRevision)'" >> .env
echo "REV_COUNT='$(revcount)'" >> .env