Files
Andrei Kvapil 9f2b98d364 [dx] Remove BUILDER and PLATFORM autodetection logic
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2025-09-05 11:48:19 +02:00

17 lines
627 B
Makefile

export NAME=kubeovn-webhook
export NAMESPACE=cozy-kubeovn
include ../../../scripts/common-envs.mk
include ../../../scripts/package.mk
image:
docker buildx build images/kubeovn-webhook \
--tag $(REGISTRY)/kubeovn-webhook:$(call settag,$(TAG)) \
--cache-from type=registry,ref=$(REGISTRY)/kubeovn-webhook:latest \
--cache-to type=inline \
--metadata-file images/kubeovn-webhook.json \
$(BUILDX_ARGS)
IMAGE="$(REGISTRY)/kubeovn-webhook:$(call settag,$(TAG))@$$(yq e '."containerimage.digest"' images/kubeovn-webhook.json -o json -r)" \
yq -i '.image = strenv(IMAGE)' values.yaml
rm -f images/kubeovn-webhook.json