buildimage/Makefile

10 lines
383 B
Makefile
Raw Normal View History

2023-09-07 11:53:18 +02:00
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
BUILDER := docker buildx
2023-09-07 12:32:05 +02:00
TAG := git.schmidl.dev/schtobia/buildimage
2023-09-07 11:53:18 +02:00
build: dockerfile
2023-09-07 12:32:05 +02:00
@${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} .