Added publish build step
This commit is contained in:
parent
6e8f3f7138
commit
c84cd10c9b
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -2,8 +2,13 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
BUILDER := docker buildx
|
DOCKER := docker
|
||||||
|
BUILDER := ${DOCKER} buildx
|
||||||
TAG := git.schmidl.dev/schtobia/buildimage
|
TAG := git.schmidl.dev/schtobia/buildimage
|
||||||
|
|
||||||
build: dockerfile
|
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} .
|
@${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}
|
||||||
|
|
Loading…
Reference in a new issue