From c84cd10c9be1e091856bf0a0a659c0b2784c3829 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Thu, 7 Sep 2023 12:45:46 +0200 Subject: [PATCH] Added publish build step --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9384246..7516f98 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,13 @@ # # SPDX-License-Identifier: AGPL-3.0-or-later -BUILDER := docker buildx +DOCKER := docker +BUILDER := ${DOCKER} buildx TAG := git.schmidl.dev/schtobia/buildimage build: dockerfile @${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} . + +.PHONY: publish +publish: + @${DOCKER} push ${TAG}