franky/Makefile
2024-06-28 19:26:15 +02:00

12 lines
579 B
Makefile

BUILD_TAG = $(shell date +'%Y.%m.%d')
IMAGE ?= packager
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
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