From 74f38c4305379943d621c13f9c4d576a9fa692e4 Mon Sep 17 00:00:00 2001 From: davidfrickert Date: Fri, 6 Dec 2024 18:10:51 +0100 Subject: [PATCH] fix gitignore, add makefile --- .gitignore | 2 +- charts/nextcloud/.helmignore | 21 +++++++++++++++++++++ charts/nextcloud/Makefile | 14 ++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 charts/nextcloud/.helmignore create mode 100644 charts/nextcloud/Makefile diff --git a/.gitignore b/.gitignore index a11356f..38966c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -**/charts/* +charts/**/charts **.tgz \ No newline at end of file diff --git a/charts/nextcloud/.helmignore b/charts/nextcloud/.helmignore new file mode 100644 index 0000000..f0c1319 --- /dev/null +++ b/charts/nextcloud/.helmignore @@ -0,0 +1,21 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj diff --git a/charts/nextcloud/Makefile b/charts/nextcloud/Makefile new file mode 100644 index 0000000..4e6b4de --- /dev/null +++ b/charts/nextcloud/Makefile @@ -0,0 +1,14 @@ +VERSION := $(shell yq -r .version Chart.yaml) + +build_only: + helm dependency build + helm package . + +cleanup: + rm -r charts + rm nextcloud-${VERSION}.tgz + +build: build_only cleanup + +push: + helm push nextcloud-${VERSION}.tgz oci://git.djf.lol/davidfrickert/nextcloud \ No newline at end of file