blob: a4e02ddbe801f969dab743303df2a7a4cd2246d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
|