-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (43 loc) Β· 1.65 KB
/
justfile
File metadata and controls
47 lines (43 loc) Β· 1.65 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
# Helm chart justfile for control-layer
# Default recipe - show available commands
default:
@just --list
# Lint the Helm chart
lint:
@echo "π Linting Helm chart..."
helm lint .
@echo "β
Lint passed"
# Run all Helm tests (unit tests + template rendering)
test:
@echo "π§ͺ Running Helm tests..."
@echo ""
@echo "β Running unit tests..."
@if [ -d "tests" ]; then \
helm unittest .; \
else \
echo " β οΈ No tests directory found, skipping unit tests"; \
fi
@echo ""
@echo "β Testing template rendering with default values..."
@helm template test-release . > /dev/null
@echo "β Testing with serviceMonitor enabled..."
@helm template test-release . --set serviceMonitor.enabled=true > /dev/null
@echo "β Testing with external database..."
@helm template test-release . \
--set postgresql.enabled=false \
--set secrets.controlLayer.data.DATABASE_URL="postgres://user:pass@host:5432/db" > /dev/null
@echo ""
@echo "β
All tests passed"
# Full release workflow: lint, test, package, and publish
release version: lint test
@echo ""
@echo "π¦ Packaging Helm chart version {{version}}..."
helm package . --version {{version}}
@echo ""
@echo "π Publishing chart version {{version}} to OCI registry..."
helm push control-layer-{{version}}.tgz oci://ghcr.io/doublewordai/charts
@echo ""
@echo "β
Chart published to ghcr.io/doublewordai/charts/control-layer:{{version}}"
@echo ""
@echo "π¦ Installation command:"
@echo " helm install my-control-layer oci://ghcr.io/doublewordai/charts/control-layer --version {{version}}"