makefile: optimize build target, fix cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user