-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy path.mise.toml
More file actions
70 lines (58 loc) · 1.9 KB
/
.mise.toml
File metadata and controls
70 lines (58 loc) · 1.9 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[tools]
actionlint = "1.7.11"
github-cli = "2.87.3"
helm = "4.1"
helm-ct = "3.14.0"
helm-docs = '1.14.2'
pre-commit = "4.5.1"
shellcheck = "0.11.0"
yamllint = "1.38.0"
# Variables
[env]
WORKER_CHART_NAME = "prefect-worker"
WORKER_CHART_PATH = "./charts/prefect-worker"
WORKER_RELEASE_NAME = "prefect-worker"
SERVER_CHART_NAME = "prefect-server"
SERVER_CHART_PATH = "./charts/prefect-server"
SERVER_RELEASE_NAME = "prefect-server"
PROMETHEUS_PREFECT_EXPORTER_CHART_NAME = "prometheus-prefect-exporter"
PROMETHEUS_PREFECT_EXPORTER_CHART_PATH = "./charts/prometheus-prefect-exporter"
NAMESPACE = "prefect"
VALUES_FILE = "./charts/prefect-server/values.yaml"
[tasks.tools]
description = "Install all tools and setup pre-commit"
depends = ["mise", "pre-commit-install"]
[tasks.mise]
description = "Install mise tools"
run = "mise install --yes"
[tasks.pre-commit-install]
description = "Install pre-commit hooks"
run = "pre-commit install"
outputs = [".git/hooks/pre-commit"]
[tasks.tools-list]
description = "List current mise tools"
run = "mise list --current"
[tasks.helm-repo]
description = "Add required Helm repositories"
run = "helm repo add bitnami https://charts.bitnami.com/bitnami"
[tasks.buildprom]
description = "Build Prometheus Prefect Exporter Helm dependencies"
run = "helm dependency build $PROMETHEUS_PREFECT_EXPORTER_CHART_PATH"
depends = ["helm-repo"]
[tasks.buildserver]
description = "Build Server Helm dependencies"
run = "helm dependency build $SERVER_CHART_PATH"
depends = ["helm-repo"]
[tasks.buildworker]
description = "Build Worker Helm dependencies"
run = "helm dependency build $WORKER_CHART_PATH"
depends = ["helm-repo"]
[tasks.buildall]
description = "Build all Helm dependencies"
depends = ["buildworker", "buildserver", "buildprom"]
[tasks.helmtest]
description = "Run Helm unittest"
run = "./scripts/helm_unittest.sh"
[tasks.charttest]
description = "Run chart-testing"
run = "./scripts/helm_charttest.sh"