-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 691 Bytes
/
Makefile
File metadata and controls
41 lines (31 loc) · 691 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
36
37
38
39
40
41
.PHONY: build test clean lint run deps build-lxc all release validate deploy-lxc
# Build the application
build:
go build -o build/bin/bootstrap-cli main.go
# Run tests
test:
go test ./...
# Clean build artifacts
clean:
rm -rf build/
# Run linter
lint:
golangci-lint run ./...
# Run the application
run: build
./build/bin/bootstrap-cli
# Install dependencies
deps:
go mod download
go mod tidy
# Build for LXC testing
build-lxc:
GOOS=linux GOARCH=amd64 go build -o build/bin/bootstrap-cli-linux-amd64 main.go
# Validate setup
validate:
./build/bin/bootstrap-cli validate
# Default target
all: lint test build
# Create a release
release:
./scripts/release/create-release.sh