mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-08 21:14:56 +09:00
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
22 lines
719 B
Makefile
22 lines
719 B
Makefile
export NAME=kilo
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../hack/common-envs.mk
|
|
include ../../../hack/package.mk
|
|
|
|
update:
|
|
sha=$$(git ls-remote https://github.com/squat/kilo refs/heads/main | awk '{print $$1}') && \
|
|
sed -i "/ARG VERSION/ s|=.*|=$${sha}|g" images/kilo/Dockerfile
|
|
|
|
image:
|
|
docker buildx build images/kilo \
|
|
$(call image-tags,kilo,v$(COZYSTACK_VERSION)) \
|
|
$(call cache-args,kilo) \
|
|
--metadata-file images/kilo.json \
|
|
$(BUILDX_ARGS)
|
|
REPOSITORY="$(REGISTRY)/kilo" \
|
|
yq -i '.kilo.image.repository = strenv(REPOSITORY)' values.yaml
|
|
TAG=$(IMAGE_TAG)@$$(yq e '."containerimage.digest"' images/kilo.json -o json -r) \
|
|
yq -i '.kilo.image.tag = strenv(TAG)' values.yaml
|
|
rm -f images/kilo.json
|