-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 1.3 KB
/
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
37
38
39
40
41
42
43
.PHONY: run
run:
go run main.go
.PHONY: build
build:
go build -o ./bin/highlights cmd/highlights/main.go
.PHONY: build-sample
build-sample:
go build -o ./bin/sample cmd/sample/main.go
.PHONY: container
container: ## create docker container
docker build -t p4nospet/basketball-highlights .
.PHONY: run-euroleague
run-euroleague:
docker run --rm --env-file .env -v $(PWD)/data:/data p4nospet/basketball-highlights highlights -euroleague
.PHONY: run-nba
run-nba:
docker run --rm --env-file .env -v $(PWD)/data:/data p4nospet/basketball-highlights highlights -nba
.PHONY: dry-run-euroleague
dry-run-euroleague:
docker run --rm --env-file .env -v $(PWD)/data:/data p4nospet/basketball-highlights highlights -euroleague -dry
.PHONY: dry-run-nba
dry-run-nba:
docker run --rm --env-file .env -v $(PWD)/data:/data p4nospet/basketball-highlights highlights -nba -dry
.PHONY: run-euroleague-skip-upload
run-euroleague-skip-upload:
docker run --rm --env-file .env -v $(PWD)/data:/data p4nospet/basketball-highlights highlights -euroleague -skip-upload
.PHONY: run-nba-skip-upload
run-nba-skip-upload:
docker run --rm --env-file .env -v $(PWD)/data:/data p4nospet/basketball-highlights highlights -nba -skip-upload
.PHONY: send-sample
run-container-sample:
docker run --rm --env-file .env p4nospet/basketball-highlights sample