franky/Makefile
2025-06-21 05:28:44 +02:00

14 lines
618 B
Makefile

BUILD_TAG = $(shell date +'%Y.%m.%d')
IMAGE ?= packager
REGISTRY=registry.pinkhaj.world
ENGINE=podman
build:
echo "Building franky-$(IMAGE) with tag $(BUILD_TAG)"
$(ENGINE) build -t liliesh/franky-$(IMAGE):$(BUILD_TAG) $(IMAGE)/.
$(ENGINE) image tag liliesh/franky-$(IMAGE):$(BUILD_TAG) liliesh/franky-$(IMAGE):latest
publish:
$(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