-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 675 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 675 Bytes
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
# Build automation for the project
.PHONY: all train build-go deploy clean
all: train build-go
train:
@echo "Training model..."
cd python/training && python train.py
build-go:
@echo "Building Go binary..."
cd go/api && go build -o ../../bin/mlops-api
docker-build:
docker build -t your-registry/mlops-go-api -f Dockerfile.go .
docker build -t your-registry/mlops-py -f Dockerfile.python .
deploy:
kubectl apply -f deployments/
clean:
rm -rf bin/
enable-ci:
@mkdir -p .github/workflows
@cp .github/workflow-templates/* .github/workflows/
@echo "CI/CD workflows enabled"
disable-ci:
@rm -rf .github/workflows
@echo "CI/CD workflows disabled"