-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path20-tools.mk
More file actions
43 lines (32 loc) · 1.1 KB
/
Copy path20-tools.mk
File metadata and controls
43 lines (32 loc) · 1.1 KB
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
33
34
35
36
37
38
39
40
41
42
43
####
## ActionLint CLI
####
ACTIONLINT_BIN := $(BIN_DIR)/actionlint
ACTIONLINT_VERSION := 1.7.7
bin/actionlint: bin/actionlint-$(ACTIONLINT_VERSION)
@ln -sf actionlint-$(ACTIONLINT_VERSION) bin/actionlint
bin/actionlint-$(ACTIONLINT_VERSION): | $(BIN_DIR)
curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash \
| bash -s -- "$(ACTIONLINT_VERSION)" "$(BIN_DIR)"
@mv bin/actionlint $@
####
## MiniKube
####
MINIKUBE_BIN := $(BIN_DIR)/minikube
MINIKUBE_VERSION := 1.35.0
bin/minikube: bin/minikube-$(MINIKUBE_VERSION)
@ln -sf $(notdir $<) $@
bin/minikube-$(MINIKUBE_VERSION): | $(BIN_DIR)
@curl -sSfL 'https://github.com/kubernetes/minikube/releases/download/v$(MINIKUBE_VERSION)/minikube-$(OSTYPE)-$(ARCHTYPE)' --output $@
@chmod +x $@
####
## Helm
####
HELM_BIN := $(BIN_DIR)/helm
HELM_VERSION := 3.17.1
bin/helm: bin/helm-$(HELM_VERSION)
@ln -sf $(notdir $<) $@
bin/helm-$(HELM_VERSION): | $(BIN_DIR)
@curl -sSfL 'https://get.helm.sh/helm-v$(HELM_VERSION)-$(OSTYPE)-$(ARCHTYPE).tar.gz' --output - \
| tar xzvOf - '$(OSTYPE)-$(ARCHTYPE)/helm' > $@
@chmod +x $@