forked from mbround18/valheim-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
91 lines (76 loc) · 2.24 KB
/
Makefile.toml
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
[tasks.setup]
workspace = false
script = '''
if [ ! -f "$PWD/docker-compose.dev.yml" ]; then
echo "Creating docker-compose.dev.yml for development"
cp "$PWD/docker-compose.yml" "$PWD/docker-compose.dev.yml"
fi
'''
# Format files
[tasks.member_format]
run_task = { name = "format", fork = true }
# Run clippy
[tasks.member_clippy]
run_task = { name = "clippy", fork = true }
# Build Docker
[tasks."docker:build"]
workspace = false
command = "docker"
args = ["compose", "-f", "./docker-compose.dev.yml", "build"]
dependencies = ["setup"]
# Launch Docker
[tasks."docker:up"]
workspace = false
command = "docker"
args = ["compose", "-f", "./docker-compose.dev.yml", "up"]
dependencies = ["setup"]
# Launch Docker
[tasks."docker:down"]
workspace = false
command = "docker"
args = ["compose", "-f", "./docker-compose.dev.yml", "down"]
dependencies = ["setup"]
# Launch Docker
[tasks."docker:push"]
workspace = false
command = "docker"
args = ["compose", "-f", "./docker-compose.dev.yml", "push"]
dependencies = ["setup"]
# Start Development Workflow
[tasks."start"]
workspace = false
dependencies = ["member_format", "member_clippy", "docker:up"]
# Start Development Workflow
[tasks."start:dev"]
workspace = false
dependencies = ["member_format", "member_clippy", "docker:down", "docker:build", "docker:up"]
# Start Development Workflow
[tasks."build:dev"]
workspace = false
dependencies = ["member_format", "member_clippy", "docker:build"]
# Access docker container as Steam (default)
[tasks.access]
workspace = false
command = "docker-compose"
args = ["-f", "./docker-compose.dev.yml", "exec", "--user", "steam", "valheim", "bash"]
# Access docker container as root
[tasks."access:admin"]
workspace = false
command = "docker-compose"
args = ["-f", "./docker-compose.dev.yml", "exec", "valheim", "bash"]
# Run odin release
[tasks.release-odin]
workspace = false
condition = { profiles = ["production"] }
command = "cargo"
args = ["build", "--release", "--bin", "odin"]
# Run huginn release
[tasks.release-http-server]
workspace = false
condition = { profiles = ["production"] }
command = "cargo"
args = ["build", "--release", "--bin", "huginn"]
[tasks.release]
workspace = false
condition = { profiles = ["production"] }
dependencies = ["release-odin", "release-http-server"]