-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminimal-manifest.yaml
More file actions
72 lines (55 loc) · 1.28 KB
/
minimal-manifest.yaml
File metadata and controls
72 lines (55 loc) · 1.28 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
60
61
62
63
64
65
66
67
68
69
70
71
72
# Minimal Update Manifest - Only implemented features
version: "1.2.3"
release_date: "2025-01-20"
description: "Bug fixes and new features"
# File handling rules
files:
# Configuration files - intelligent merging
"config.toml":
action: "merge_toml"
merge_strategy: "preserve_user"
"config/*.toml":
action: "merge_toml"
merge_strategy: "preserve_user"
"settings.json":
action: "merge_json"
merge_strategy: "preserve_user"
# Application code - always replace
"src/**/*.py":
action: "replace"
"*.py":
action: "replace"
"requirements.txt":
action: "replace"
# Templates - backup then replace
"templates/**/*":
action: "backup_replace"
# Environment files - never touch
".env":
action: "skip"
"secrets/*":
action: "skip"
# Directory preservation
directories:
# User data - always preserve
"data":
preserve: true
"images":
preserve: true
"uploads":
preserve: true
# Cache - can be cleared
"cache":
preserve: false
"tmp":
preserve: false
# Update hooks
hooks:
pre_update:
- "systemctl stop myapp.service"
post_update:
- "pip install -r requirements.txt"
- "systemctl start myapp.service"
rollback:
- "systemctl stop myapp.service"
- "systemctl start myapp.service"