Updated Makefile

This commit is contained in:
Liliesh 2025-06-21 05:28:44 +02:00
parent 7f9bba6727
commit 8caca309b2
Signed by: liliesh
GPG key ID: 680387646C7BAE8E

View file

@ -1,12 +1,14 @@
BUILD_TAG = $(shell date +'%Y.%m.%d') BUILD_TAG = $(shell date +'%Y.%m.%d')
IMAGE ?= packager IMAGE ?= packager
REGISTRY=registry.pinkhaj.world
ENGINE=podman
build: build:
echo "Building franky-$(IMAGE) with tag $(BUILD_TAG)" echo "Building franky-$(IMAGE) with tag $(BUILD_TAG)"
podman build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/. $(ENGINE) build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/.
podman image tag liliesh/franky-$(IMAGE):$(BUILD_TAG) liliesh/franky-$(IMAGE):latest $(ENGINE) image tag liliesh/franky-$(IMAGE):$(BUILD_TAG) liliesh/franky-$(IMAGE):latest
publish: publish:
podman build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/. $(ENGINE) build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/.
podman push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) registry.satecloud.com/liliesh/franky-$(IMAGE):$(BUILD_TAG) $(ENGINE) push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) $(REGISTRY)/liliesh/franky-$(IMAGE):$(BUILD_TAG)
podman push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) registry.satecloud.com/liliesh/franky-$(IMAGE):latest $(ENGINE) push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) $(REGISTRY)/liliesh/franky-$(IMAGE):latest