From 305af7eabf0b193e98c695a5f59b10abd7dd477c Mon Sep 17 00:00:00 2001 From: davidfrickert Date: Fri, 6 Dec 2024 18:31:23 +0100 Subject: [PATCH] makefile: optimize build target, fix cleanup --- charts/nextcloud/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/charts/nextcloud/Makefile b/charts/nextcloud/Makefile index 4e6b4de..95f5dff 100644 --- a/charts/nextcloud/Makefile +++ b/charts/nextcloud/Makefile @@ -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 \ No newline at end of file +push: push_only push_cleanup