Files
2026-06-18 10:40:05 +05:00

28 lines
790 B
Makefile

export NAME=linstor-gui
export NAMESPACE=cozy-linstor
include ../../../hack/common-envs.mk
include ../../../hack/package.mk
LINSTOR_GUI_VERSION ?= 2.3.0
.PHONY: image image-linstor-gui test
image: image-linstor-gui
image-linstor-gui:
docker buildx build images/linstor-gui \
--build-arg LINSTOR_GUI_VERSION=$(LINSTOR_GUI_VERSION) \
$(call image-tags,linstor-gui,$(LINSTOR_GUI_VERSION)) \
$(call cache-args,linstor-gui) \
--metadata-file images/linstor-gui.json \
$(BUILDX_ARGS)
REPOSITORY="$(REGISTRY)/linstor-gui" \
yq -i '.image.repository = strenv(REPOSITORY)' values.yaml
TAG="$(IMAGE_TAG)@$$(yq e '."containerimage.digest"' images/linstor-gui.json -o json -r)" \
yq -i '.image.tag = strenv(TAG)' values.yaml
rm -f images/linstor-gui.json
test:
helm unittest .