makefile: optimize build target, fix cleanup
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
VERSION := $(shell yq -r .version Chart.yaml)
|
VERSION := $(shell yq -r .version Chart.yaml)
|
||||||
|
|
||||||
build_only:
|
build_only:
|
||||||
helm dependency build
|
helm package . --dependency-update
|
||||||
helm package .
|
|
||||||
|
|
||||||
cleanup:
|
push_only:
|
||||||
|
helm push nextcloud-${VERSION}.tgz oci://git.djf.lol/davidfrickert/nextcloud
|
||||||
|
|
||||||
|
build_cleanup:
|
||||||
rm -r charts
|
rm -r charts
|
||||||
|
|
||||||
|
push_cleanup:
|
||||||
rm nextcloud-${VERSION}.tgz
|
rm nextcloud-${VERSION}.tgz
|
||||||
|
|
||||||
build: build_only cleanup
|
build: build_only build_cleanup
|
||||||
|
|
||||||
push:
|
push: push_only push_cleanup
|
||||||
helm push nextcloud-${VERSION}.tgz oci://git.djf.lol/davidfrickert/nextcloud
|
|
||||||
|
|||||||
Reference in New Issue
Block a user