diff options
| author | Max Resnick <max@ofmax.li> | 2019-08-03 22:22:27 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2019-08-18 23:05:42 -0700 |
| commit | 7d9a09e262d512eca02a254ee3534e71335a984f (patch) | |
| tree | e3d91c6f58ec5a9cb36ee68b7c36a726732e89d3 /Makefile | |
| parent | ca67c4ad52142c5246b28a34f9c25a22684432be (diff) | |
| download | grumpy-charts-7d9a09e262d512eca02a254ee3534e71335a984f.tar.gz | |
init commit of build tools and snapshot"
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" |