-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
55 lines (45 loc) · 1007 Bytes
/
Taskfile.yaml
File metadata and controls
55 lines (45 loc) · 1007 Bytes
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
# Copyright 2025 Kristopher Rahim Afful-Brown. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
version: "3"
silent: true
tasks:
default:
desc: list tasks
cmd: |
task --list-all
tidy:
desc: tidy dependencies
cmd: |
go mod tidy
test:
desc: unit testing
deps:
- tidy
cmd: |
DEBUG=1 go test -race -count=1 -cover -timeout=60s {{.CLI_ARGS}}
up:
desc: run services
deps:
- down
- dangle
- tidy
cmd: |
docker compose up -d --build --force-recreate {{.CLI_ARGS}}
down:
desc: stop services
cmd: |
docker compose down --volumes {{.CLI_ARGS}}
dangle:
desc: remove dangling images
cmd: |
docker rmi $(docker images -f 'dangling=true' -q) || true
prune:
desc: prune containers
cmd: |
docker system prune -af
logs:
desc: run logs
cmd: |
docker compose logs -f {{.CLI_ARGS}}