Files
dev-service/Makefile
itzaname ce63ae1d26
Some checks failed
continuous-integration/drone Build is failing
Add ci
2025-06-21 23:37:35 -04:00

24 lines
468 B
Makefile

clean:
rm -rf build
rm -rf web/dist
test:
go fmt ./...
go vet ./...
go test -race ./...
web:
cd web && npm install && npm run build
binary:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o build/server cmd/dev-service/service.go
build: web binary
docker:
docker build . -t git.itzana.me/strafesnet/dev-service:latest
docker push git.itzana.me/strafesnet/dev-service:latest
all: clean build docker
.PHONY: clen test web binary build docker all