summaryrefslogtreecommitdiff
path: root/cilium-cli/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-05-07 20:49:16 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-05-07 20:49:16 +0200
commit3200574c138aef9527accfe096123ca08879c3d3 (patch)
treeefcf39db58f40ede75143dfe2bb080b04418991f /cilium-cli/Makefile
parentadd kubeletctl (diff)
add cilium-cli
Diffstat (limited to 'cilium-cli/Makefile')
-rw-r--r--cilium-cli/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/cilium-cli/Makefile b/cilium-cli/Makefile
new file mode 100644
index 0000000..d90ba2b
--- /dev/null
+++ b/cilium-cli/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/cilium/cilium-cli/releases/download"
+
+.PHONY: clean
+
+all: amd64/cilium arm64/cilium
+
+%/cilium: cilium-linux-%_$(VERSION).tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<"
+
+cilium-linux-%_$(VERSION).tar.gz:
+ wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/_$(VERSION)//)" -O "$@"
+ sha256sum -c --ignore-missing sha256sums.txt
+
+clean:
+ rm -rf amd64
+ rm -rf arm64
+ rm -f cilium-linux-*.tar.gz