Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- Thank you for making a contribution! Here are some tips for you: - Start the PR title with the [label] of Cozystack component: - For system components: [platform], [system], [linstor], [cilium], [kube-ovn], [dashboard], [cluster-api], etc. - For managed apps: [apps], [tenant], [kubernetes], [postgres], [virtual-machine] etc. - For development and maintenance: [tests], [ci], [docs], [maintenance]. - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Add the label `backport` if it's a bugfix that needs to be backported to a previous version. --> ## What this PR does This PR renames cozypkg to cozyhr https://github.com/cozystack/cozyhr ### Release note <!-- Write a release note: - Explain what has changed internally and for users. - Start with the same [label] as in the PR title - Follow the guidelines at https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md. --> ```release-note [installer,dx] Rename cozypkg to cozyhr ```
29 lines
845 B
Makefile
29 lines
845 B
Makefile
NAME=installer
|
|
NAMESPACE=cozy-system
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
|
|
pre-checks:
|
|
../../../hack/pre-checks.sh
|
|
|
|
show:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain
|
|
|
|
apply:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain | kubectl apply -f-
|
|
|
|
diff:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain | kubectl diff -f -
|
|
|
|
image: pre-checks image-cozystack
|
|
|
|
image-cozystack:
|
|
docker buildx build -f images/cozystack/Dockerfile ../../.. \
|
|
--tag $(REGISTRY)/installer:$(call settag,$(TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/installer:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/installer.json \
|
|
$(BUILDX_ARGS)
|
|
IMAGE="$(REGISTRY)/installer:$(call settag,$(TAG))@$$(yq e '."containerimage.digest"' images/installer.json -o json -r)" \
|
|
yq -i '.cozystack.image = strenv(IMAGE)' values.yaml
|
|
rm -f images/installer.json
|