makefile: optimize build target, fix cleanup

This commit is contained in:
2024-12-06 18:31:23 +01:00
parent 126c585a74
commit 305af7eabf

View File

@@ -1,14 +1,17 @@
VERSION := $(shell yq -r .version Chart.yaml)
build_only:
helm dependency build
helm package .
helm package . --dependency-update
cleanup:
push_only:
helm push nextcloud-${VERSION}.tgz oci://git.djf.lol/davidfrickert/nextcloud
build_cleanup:
rm -r charts
push_cleanup:
rm nextcloud-${VERSION}.tgz
build: build_only cleanup
build: build_only build_cleanup
push:
helm push nextcloud-${VERSION}.tgz oci://git.djf.lol/davidfrickert/nextcloud
push: push_only push_cleanup