fix gitignore, add makefile

This commit is contained in:
2024-12-06 18:10:51 +01:00
parent 3f17c9fddd
commit 74f38c4305
3 changed files with 36 additions and 1 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
**/charts/*
charts/**/charts
**.tgz

View File

@@ -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

14
charts/nextcloud/Makefile Normal file
View File

@@ -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