extend labels, added git

This commit is contained in:
Tobias Schmidl 2023-09-07 12:32:05 +02:00
parent c3f0b11a7f
commit e0dc27bf8c
2 changed files with 14 additions and 2 deletions

View file

@ -3,6 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
BUILDER := docker buildx
TAG := git.schmidl.dev/schtobia/buildimage
build: dockerfile
@${BUILDER} build --build-arg=GIT_COMMIT=$(shell git describe --tags --always --dirty) -t buildimage .
@${BUILDER} build --build-arg=GIT_COMMIT=$(shell git describe --always) --build-arg=VERSION=$(shell git describe --tags --always --dirty) --build-arg=TIMESTAMP="$(shell date -u -Iseconds)" -t ${TAG} .