-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
56 lines (47 loc) · 1.41 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
version: "3"
env:
tag_version: v0.22
bot_repo: minecrafter
DOCKER_HOST: ssh://root@darklab:22
MINECRAFT_TAG: modded-1.7.10-v0.5.4
MINECRAFT_LATEST: modded-1.7.10-latest
CRONTAB_TAG: modded-1.7.10-crontab-v0.2.1
tasks:
ps:
cmds:
- docker ps
bot:build:
cmds:
- docker build --tag darkwind8/${bot_repo}:${tag_version} --target ${bot_repo}-runner .
bot:push:
cmds:
- docker push darkwind8/${bot_repo}:${tag_version}
bot:run:
cmds:
- docker run -it darkwind8/${bot_repo}:${tag_version}
minecraft:build:
cmds:
- docker build --tag darkwind8/minecraft:${MINECRAFT_TAG} ./server_modded_1710
minecraft:push:
cmds:
- docker push darkwind8/minecraft:${MINECRAFT_TAG}
- docker tag darkwind8/minecraft:${MINECRAFT_TAG} darkwind8/minecraft:${MINECRAFT_LATEST}
- docker push darkwind8/minecraft:${MINECRAFT_LATEST}
minecraft:buildpush:
cmds:
- task: minecraft:build
- task: minecraft:push
minecraft:run:
cmds:
- docker run -it darkwind8/minecraft:${MINECRAFT_TAG}
bot:buildpush:
cmds:
- task: docker:build
- task: docker:push
crontab:buildpush:
cmds:
- docker build --tag darkwind8/minecraft:${CRONTAB_TAG} ./server_modded_1710/crontab
- docker push darkwind8/minecraft:${CRONTAB_TAG}
shell:production:
cmds:
- ssh -i ~/.ssh/id_rsa.darklab [email protected]