Makefile: build/push/release für das Registry-Image
This commit is contained in:
1 parent
5d77fa6f26
commit
e0e27402c0
1 file changed
+20
@@ -0,0 +1,20 @@
|
|||||||
|
IMAGE ?= gitea.korbel.network/nico/researchchat:latest
|
||||||
|
ENGINE ?= podman
|
||||||
|
|
||||||
|
.PHONY: help build push release
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "Ziele:"
|
||||||
|
@echo " make build - Image bauen (als $(IMAGE))"
|
||||||
|
@echo " make push - Image in die Registry pushen"
|
||||||
|
@echo " make release - bauen + pushen"
|
||||||
|
@echo ""
|
||||||
|
@echo "Variablen: make release ENGINE=docker IMAGE=gitea.korbel.network/nico/researchchat:v2"
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(ENGINE) build -t $(IMAGE) .
|
||||||
|
|
||||||
|
push:
|
||||||
|
$(ENGINE) push $(IMAGE)
|
||||||
|
|
||||||
|
release: build push
|
||||||
Reference in new issue
Block a user