-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
35 lines (30 loc) · 961 Bytes
/
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
version: 3
vars:
NEXT_TAG:
sh: '{{.TASKFILE_DIR}}/get_next_tag.py'
tasks:
generate:
label: "Generate Appstream metadata and download it"
cmds:
- "ansible-playbook -i inventory/hosts.yml -K playbook.yml"
commit:
label: "Add, commit, and tag new appstream data"
cmds:
- "git add solus-1-failed.xml.gz solus-1-icons.tar.gz solus-1-ignore.xml.gz solus-1-screenshots.tar solus-1.xml.gz"
- "git commit -m 'Refresh Appstream metainfo'"
- "git tag {{.NEXT_TAG}}"
push:
label: "Push changes to getsolus/solus-appstream-data"
cmds:
- "git push --follow-tags"
full-process:
label: "Perform the entire appstream generation process"
cmds:
- task: generate
- task: commit
- task: push
appstream-init:
label: "Set up the local system to run this tooling"
cmds:
- "sudo eopkg install pyyaml ansible"
- "ansible-galaxy collection install community.general"