2024-05-06 13:51:44 +00:00
|
|
|
.PHONY: deploy-server ui build linux-amd64 linux-arm64
|
2024-05-03 17:11:56 +00:00
|
|
|
|
|
|
|
BINARY_NAME = xmr-nodes
|
|
|
|
|
2024-05-06 13:51:44 +00:00
|
|
|
# Deploy server
|
|
|
|
# To use this, make sure the inventory and deploy-server.yml file is properly configured
|
|
|
|
deploy-server: build
|
|
|
|
ansible-playbook -i ./tools/ansible/inventory.ini -l server ./tools/ansible/deploy-server.yml -K
|
|
|
|
|
2024-05-06 12:55:41 +00:00
|
|
|
build: ui linux-amd64 linux-arm64
|
2024-05-03 17:11:56 +00:00
|
|
|
|
|
|
|
ui:
|
|
|
|
go generate ./...
|
|
|
|
|
2024-05-06 12:55:41 +00:00
|
|
|
linux-amd64:
|
2024-05-03 17:11:56 +00:00
|
|
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o bin/${BINARY_NAME}-static-linux-amd64
|
|
|
|
|
2024-05-06 12:55:41 +00:00
|
|
|
linux-arm64:
|
|
|
|
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -o bin/${BINARY_NAME}-static-linux-arm64
|
|
|
|
|
2024-05-03 17:11:56 +00:00
|
|
|
clean:
|
|
|
|
go clean
|
|
|
|
rm -rfv ./bin
|
|
|
|
rm -rf ./frontend/build
|