From 7d9a09e262d512eca02a254ee3534e71335a984f Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sat, 3 Aug 2019 22:22:27 -0700 Subject: init commit of build tools and snapshot" --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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" -- cgit v1.2.3