diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a4e02dd --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +#!/usr/bin/env make +packages = $(patsubst grumpy/%,public/%,$(wildcard grumpy/*)) + +clean: + rm -rf public/ + +init: + helm init --client-only + +public: + mkdir -p ./public + echo 'User-Agent: *\nDisallow: /\' > ./public/robots.txt + +public/%: + helm package grumpy/$(*F) --destination ./public + +public/index.yaml: public $(packages) + helm repo index --url https://${CI_PROJECT_NAMESPACE}.gitlab.io/${CI_PROJECT_NAME} . + mv index.yaml ./public/index.yaml + +build: init public/index.yaml + @echo "index built" |