-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
94 lines (89 loc) · 2.22 KB
/
Taskfile.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3"
tasks:
start-agones-cluster:
cmds:
- minikube start -p agones --kubernetes-version v1.30.4
silent: true
stop-agones-cluster:
cmds:
- minikube -p agones stop
silent: true
agones-cluster-dashboard:
cmds:
- minikube -p agones dashboard
silent: true
start-agones-local:
cmds:
- bin/sdk-server.linux.amd64 --local
silent: true
start-agones:
cmds:
- docker run --network=host us-docker.pkg.dev/agones-images/release/agones-sdk:1.44.0 --local
silent: true
clippy:
cmds:
- cargo clippy
silent: true
clean:
cmds:
- cargo clean
silent: true
really-clean:
deps: [clean]
cmds:
- docker image prune
- docker rmi -f bevy-multiplayer-api
- docker rmi -f bevy-multiplayer-notifs
- docker rmi -f bevy-multiplayer-server
silent: true
api:
cmds:
- cargo run --bin bevy-multiplayer-api
silent: true
build-api-image:
cmds:
- docker buildx build -t bevy-multiplayer-api -f services/api/Dockerfile .
silent: true
notifs:
cmds:
- cargo run --bin bevy-multiplayer-notifs
silent: true
build-notifs-image:
cmds:
- docker buildx build -t bevy-multiplayer-notifs -f services/notifs/Dockerfile .
silent: true
build-services-images:
deps: [build-api-image, build-notifs-image]
silent: true
start-services:
dir: services
cmds:
# no way to not error if the network already exists ... soooooo
- docker network create bevy-multiplayer-default || true
- docker-compose up
silent: true
stop-services:
dir: services
cmds:
- docker-compose stop && docker-compose rm -f
silent: true
server:
cmds:
- cargo run --bin bevy-multiplayer-server {{.CLI_ARGS}}
silent: true
build-server-image:
cmds:
- docker buildx build -t bevy-multiplayer-server -f game/server/Dockerfile .
silent: true
start-local-server:
cmds:
- docker run --network=host bevy-multiplayer-server local
silent: true
start-agones-server:
cmds:
- docker run --network=host bevy-multiplayer-server agones
silent: true
client:
cmds:
- cargo run --bin bevy-multiplayer
silent: true