Files
public-api/Makefile
Rhys Lloyd 517a56ef13
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
Makefile: remove operation on nonexistent directory
2025-08-05 18:51:26 -07:00

20 lines
395 B
Makefile

clean:
rm -rf build
test:
go fmt ./...
go vet ./...
go test -race ./...
binary:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o build/server cmd/public-api/service.go
build: binary
docker:
docker build . -t git.itzana.me/strafesnet/public-api:latest
docker push git.itzana.me/strafesnet/public-api:latest
all: clean build docker
.PHONY: clean test binary build docker all