forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 906 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
all: push
# See deployment.yaml for the version currently running-- bump this ahead before rebuilding!
TAG = 2.25
REPO = gcr.io/k8s-testimages
GODEP = CGO_ENABLED=0 GOOS=linux GO111MODULE=off godep
test: perfdash.go parser.go config.go downloader.go google-gcs-downloader.go
${GODEP} go test
perfdash: test
${GODEP} go build -a -installsuffix cgo -ldflags '-w' -o perfdash
run: perfdash
./perfdash \
--www \
--address=0.0.0.0:8080 \
--builds=20 \
--force-builds \
--githubConfigDir=https://api.github.com/repos/kubernetes/test-infra/contents/config/jobs/kubernetes/sig-scalability \
--githubConfigDir=https://api.github.com/repos/kubernetes/test-infra/contents/config/jobs/kubernetes/sig-release/release-branch-jobs
container: perfdash
docker build --pull -t $(REPO)/perfdash:$(TAG) .
push: container
gcloud docker -s $(REPO) -- push $(REPO)/perfdash:$(TAG)
clean:
rm -f perfdash