-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 897 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 897 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
32
33
34
35
.PHONY: build generate run validate clean docker-build docker-push k3d-load
# Build the distribution
build:
$(MAKE) -C distributions/thyme build
# Generate sources without compiling (for goreleaser)
generate:
$(MAKE) -C distributions/thyme generate
# Run the distribution
run:
$(MAKE) -C distributions/thyme run
# Validate the configuration
validate:
$(MAKE) -C distributions/thyme validate
# Clean build artifacts
clean:
$(MAKE) -C distributions/thyme clean
# Build Docker image
docker-build:
docker build -t ghcr.io/ollygarden/thyme:latest .
# Build and push Docker image to GHCR
docker-push: docker-build
docker push ghcr.io/ollygarden/thyme:latest
# Build and load into k3d cluster
k3d-load: docker-build
@CLUSTER_NAME=$${K3D_CLUSTER:-k3s-default}; \
echo "Loading image into k3d cluster: $$CLUSTER_NAME"; \
k3d image import ghcr.io/ollygarden/thyme:latest -c $$CLUSTER_NAME