-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf_example.yaml
57 lines (51 loc) · 2.77 KB
/
conf_example.yaml
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
# actions - a unified section for all actions related to files, including the spec file
actions:
# replace - actions for replacing strings. Specify target (path to the file or "spec" for the spec file).
- replace:
- target: "spec" # the target can be "spec" or a file to which changes are applied (in this case, the file will be searched for). glob patterns are supported.
find: "RHEL" # string to be replaced
replace: "AlmaLinux" # string to replace with
count: 1 # number of replacements, default is -1 (all occurrences)
- target: "README.md"
find: "RHEL"
replace: "AlmaLinux"
# delete_line - list of lines to delete.
- delete_line:
- target: "spec" # the target can be "spec" or a file to which changes are applied (in this case, the file will be searched for).
lines:
- "line1"
- "line2"
- |
hello world
asdfas
- target: "README.md"
lines:
- "line1"
# modify_release - modify the release by adding a suffix, enabled by default.
- modify_release:
- suffix: ".alma.1" # append the suffix to the release
enabled: true # (is "true" by default)
# changelog_entry - adding entries to the changelog for the spec file.
- changelog_entry:
# There can be multiple entries. If autochangelog is present, entries should not be added. The "line" is also used as the commit message.
- name: "eabdullin" # author's name
email: "[email protected]" # author's email
line: # lines to add to the changelog
- "Updated branding to AlmaLinux"
- "Additional update for branding"
# add_files - adding files (source files and patches).
- add_files:
- type: "patch" # file type (patch or source, other types may be added in the future)
name: "my_patch.patch" # patch name
number: "Latest" # number - either the patch number or "Latest" for automatic patch detection (default is "Latest")
- type: "source"
name: "my_new_source.tar.gz" # source file name
number: "Latest" # number - either the source number or "Latest" for automatic source detection (default is "Latest")
# delete_files - list of files to delete.
- delete_files:
- file_name: "file1.txt" # file name to delete, will be searched for in the package repository
- file_name: "file2.txt"
# run_script - list of scripts to execute in the RPM package repository.
- run_script:
- script: "custom_script.sh" # name of the script to execute, the script must be in the scripts directory
cwd: '"rpms" or "autopatch"' # directory where the script will be executed, "rpms" (the directory with package sources) by default, or "autopatch" (the directory with the auto-patching configuration)