-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 730 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 730 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
.PHONY: build build-local deploy clean
all:
@echo "Building Marmithon..."
make build
build-local:
@echo "Building Marmithon locally..."
@COMMIT=$$(git rev-parse --short HEAD 2>/dev/null || echo "unknown"); \
BUILD_TIME=$$(date -u); \
go build -ldflags="-X 'marmithon/command.GitCommit=$${COMMIT}' -X 'marmithon/command.BuildTime=$${BUILD_TIME}'"
build:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx build --platform arm64 --tag marmithon .
deploy: build
@echo "Deploying Marmithon to Forgejo Registry..."
docker tag marmithon forge.internal/nemo/marmithon:test
docker push forge.internal/nemo/marmithon:test
clean:
@echo "Cleaning up Docker images..."
docker rmi marmithon