Files
cozystack/packages/apps/mariadb/Makefile
T
Aleksei Sviridkin 6e51e31510 chore(mariadb): drop duplicate test targets from the package Makefile
The target was defined three times, so make emitted an override warning
on every invocation and the last definition silently won. All three
recipes were identical, so collapsing them to the one declared .PHONY
changes no behaviour.

Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-09-03 01:38:32 +03:00

27 lines
803 B
Makefile

MARIADB_BACKUP_TAG = $(shell awk '$$1 == "version:" {print $$2}' Chart.yaml)
include ../../../hack/common-envs.mk
include ../../../hack/package.mk
generate:
cozyvalues-gen -m 'mariadb' -v values.yaml -s values.schema.json -r README.md -g ../../../api/apps/v1alpha1/mariadb/types.go
../../../hack/update-crd.sh
update:
hack/update-versions.sh
make generate
.PHONY: test
test:
helm unittest .
image:
docker buildx build images/mariadb-backup \
$(call image-tags,mariadb-backup,$(MARIADB_BACKUP_TAG)) \
$(call cache-args,mariadb-backup) \
--metadata-file images/mariadb-backup.json \
$(BUILDX_ARGS)
echo "$(REGISTRY)/mariadb-backup:$(IMAGE_TAG)@$$(yq e '."containerimage.digest"' images/mariadb-backup.json -o json -r)" \
> images/mariadb-backup.tag
rm -f images/mariadb-backup.json