forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (22 loc) · 862 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
all: push
# See deployment.yaml for the version currently running-- bump this ahead before rebuilding!
TAG?=2.48
REPO?=gcr.io/k8s-staging-perf-tests
test: perfdash.go parser.go config.go metrics-downloader-helper.go metrics-downloader.go gcs_metrics_bucket.go s3_metrics_bucket.go
go test
perfdash: test
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/perf-tests/contents/perfdash/test
# Use buildkit to have "COPY --chmod=" support (availability of it in "regular" docker build depends on docker version).
container:
DOCKER_BUILDKIT=1 docker build --pull -t $(REPO)/perfdash:$(TAG) .
push: container
gcloud docker -s $(REPO) -- push $(REPO)/perfdash:$(TAG)
clean:
rm -f perfdash