From 8caca309b2c3efad4fd262f45daf4adaebc864d2 Mon Sep 17 00:00:00 2001 From: Liliesh Date: Sat, 21 Jun 2025 05:28:44 +0200 Subject: [PATCH] Updated Makefile --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 561f024..c6eecef 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ BUILD_TAG = $(shell date +'%Y.%m.%d') IMAGE ?= packager +REGISTRY=registry.pinkhaj.world +ENGINE=podman build: echo "Building franky-$(IMAGE) with tag $(BUILD_TAG)" - podman build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/. - podman image tag liliesh/franky-$(IMAGE):$(BUILD_TAG) liliesh/franky-$(IMAGE):latest + $(ENGINE) build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/. + $(ENGINE) image tag liliesh/franky-$(IMAGE):$(BUILD_TAG) liliesh/franky-$(IMAGE):latest publish: - podman build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/. - podman push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) registry.satecloud.com/liliesh/franky-$(IMAGE):$(BUILD_TAG) - podman push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) registry.satecloud.com/liliesh/franky-$(IMAGE):latest + $(ENGINE) build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/. + $(ENGINE) push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) $(REGISTRY)/liliesh/franky-$(IMAGE):$(BUILD_TAG) + $(ENGINE) push localhost/liliesh/franky-$(IMAGE):$(BUILD_TAG) $(REGISTRY)/liliesh/franky-$(IMAGE):latest