add autovault container
This commit is contained in:
22
autovault/Makefile
Normal file
22
autovault/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
VERSION=0.1.0
|
||||
BUILD=1
|
||||
IMAGE=autovault
|
||||
REGISTRY=gitea.geekhome.org/ghp
|
||||
|
||||
.PHONY: build push all
|
||||
|
||||
ifeq ($(shell command -v podman 2> /dev/null),)
|
||||
CMD=docker
|
||||
FORMAT=
|
||||
else
|
||||
CMD=podman
|
||||
FORMAT=--format docker
|
||||
endif
|
||||
|
||||
build:
|
||||
$(CMD) build $(NO_CACHE) $(FORMAT) -t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
|
||||
|
||||
push:
|
||||
$(CMD) push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
|
||||
|
||||
all: build push
|
Reference in New Issue
Block a user