-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
59 lines (44 loc) · 1.1 KB
/
Copy pathTaskfile.yml
File metadata and controls
59 lines (44 loc) · 1.1 KB
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
version: '3'
vars:
IMAGE: ip-site
tasks:
default:
desc: List available tasks
cmd: task --list
silent: true
# --- Docker ---
build:
desc: Build the Docker image
cmd: docker compose build
up:
desc: Build and start the container in the background
cmd: docker compose up --build -d
down:
desc: Stop and remove the container
cmd: docker compose down
logs:
desc: Tail container logs
cmd: docker compose logs -f
# --- Dev ---
dev:
desc: Run Flask locally in debug mode (no Docker)
cmd: uv run flask --app app run --debug
# --- Quality ---
lint:
desc: Lint with ruff
cmd: uv run ruff check .
fmt:
desc: Format code with ruff
cmd: uv run ruff format .
test:
desc: Run the test suite
cmd: uv run pytest tests/ -v
scan:
desc: Scan the Docker image with Grype (mirrors CI — fails on fixable high/critical CVEs)
deps: [build]
cmd: grype {{.IMAGE}}:latest --fail-on high --only-fixed
check:
desc: Run lint, tests and security scan (mirrors CI pipeline)
deps: [lint, test]
cmds:
- task: scan