-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
61 lines (53 loc) · 1.63 KB
/
Copy pathTaskfile.yml
File metadata and controls
61 lines (53 loc) · 1.63 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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
CTN: '{{ .CTN | default "podman" }}'
includes:
install: "/home/doku/dotfiles/taskfile/install.yaml"
gh: "/home/doku/dotfiles/taskfile/gh.yaml"
sync: "/home/doku/dotfiles/taskfile/sync.yaml"
ctn: "/home/doku/dotfiles/taskfile/container.yaml"
link: "/home/doku/dotfiles/taskfile/link.yaml"
adb: "/home/doku/dotfiles/taskfile/adb.yaml"
# image: "/home/doku/dotfiles/taskfile/image.yaml"
tasks:
### re-sign specific commit:
resign:
dir: "{{.USER_WORKING_DIR}}"
vars:
COMMIT: ""
cmds:
- |
git rebase --exec "git commit --amend --no-edit -n -S" -i {{.COMMIT}}
### common task
harness:init:
dir: "{{.USER_WORKING_DIR}}"
vars:
OCI: quay.io/ncdv/d3-tools:harness-0.0.1
cmds:
- "{{.CTN}} run --rm -v ./:/usr/src/app:z {{.OCI}}" # z for bypass permission in podman
agent-team:init:
dir: "{{.USER_WORKING_DIR}}"
vars:
OCI: ghcr.io/im6h/agent-subteam:latest
cmds:
- "{{.CTN}} run --rm -v ./:/usr/src/app:Z --userns=keep-id {{.OCI}}"
distrohub:
cmds:
- "distrobox enter software-hub"
dev-shell:
cmds:
- "toolbox enter dev-shell"
pkg:bk:
dir: /home/doku/onedrive/backup/dotfiles/
vars:
DST: /home/doku/onedrive/backup/dotfiles/
HOME: /home/doku/
AUR: "pacman-aur"
NATIVE: "pacman-native"
cmds:
- "pacman -Qqen > {{.DST}}{{.AUR}}.txt"
- "pacman -Qqem > {{.DST}}{{.NATIVE}}.txt"
- "cp {{.HOME}}/Taskfile.yml {{.DST}}"
- 'git add . && git commit -m "backup arch pkgs"'
- "git push origin main"