-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (22 loc) · 689 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
all: chart image
chart: package repo
repo: docs/index.yaml
docs/index.yaml: package
helm repo index docs --merge docs/index.yaml
package: templates/scripts.yaml templates/packages.yaml
rm -rf tmp && mkdir -p tmp
helm package . -d tmp
mv -nv tmp/* docs/
rm -rf tmp
templates/scripts.yaml: src/
kubectl create configmap auto-updater-scripts \
--from-file $< \
--dry-run -o yaml > $@
templates/packages.yaml: src/autoupdater/
kubectl create configmap auto-updater-package \
--from-file $< \
--dry-run -o yaml > $@
image: docker/
docker build -t arne/kubectlskopeo:latest docker
docker push arne/kubectlskopeo:latest
.PHONY: all chart repo package image