-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
36 lines (25 loc) · 1014 Bytes
/
Makefile
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
BIN=bin
all: serverledge executor serverledge-cli lb
serverledge:
CGO_ENABLED=0 GOOS=linux go build -o $(BIN)/$@ cmd/$@/main.go
lb:
CGO_ENABLED=0 GOOS=linux go build -o $(BIN)/$@ cmd/$@/main.go
serverledge-cli:
CGO_ENABLED=0 GOOS=linux go build -o $(BIN)/$@ cmd/cli/main.go
executor:
CGO_ENABLED=0 GOOS=linux go build -o $(BIN)/$@ cmd/$@/executor.go
DOCKERHUB_USER=grussorusso
images: image-python310 image-nodejs17ng image-base
image-python310:
docker build -t $(DOCKERHUB_USER)/serverledge-python310 -f images/python310/Dockerfile .
image-base:
docker build -t $(DOCKERHUB_USER)/serverledge-base -f images/base-alpine/Dockerfile .
image-nodejs17ng:
docker build -t $(DOCKERHUB_USER)/serverledge-nodejs17ng -f images/nodejs17ng/Dockerfile .
push-images:
docker push $(DOCKERHUB_USER)/serverledge-python310
docker push $(DOCKERHUB_USER)/serverledge-base
docker push $(DOCKERHUB_USER)/serverledge-nodejs17ng
test:
go test -v ./...
.PHONY: serverledge serverledge-cli lb executor test images