Files
sonr/Taskfile.yml
T

58 lines
1.5 KiB
YAML
Raw Normal View History

2024-12-19 06:22:44 -05:00
version: "3"
2024-12-18 15:53:45 -05:00
vars:
VERSION:
sh: git describe --tags --abbrev=0
COMMIT:
sh: git rev-parse --short HEAD
2024-12-22 17:01:11 -05:00
ROOT:
2024-12-18 15:53:45 -05:00
sh: git rev-parse --show-toplevel
2024-12-19 00:48:42 +00:00
OS:
sh: uname -s
TASKS:
sh: task -l
2024-12-19 06:22:44 -05:00
DOPPLER_TOKEN:
sh: skate get DOPPLER_NETWORK
2024-12-22 17:01:11 -05:00
includes:
2025-01-01 13:55:21 -05:00
deps: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/deps.yml
gen: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/gen.yml
hway: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/hway.yml
ipfs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ipfs.yml
issue: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ghpm.yml
procs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/procs.yml
postgres: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/postgres.yml
sonrd: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/sonrd.yml
2024-12-22 17:01:11 -05:00
2024-12-18 15:53:45 -05:00
tasks:
default:
cmds:
2024-12-19 00:48:42 +00:00
- gh run ls -L 3
2024-12-22 17:01:11 -05:00
- gum format -- "# Sonr ({{.OS}}-{{.VERSION}})" " - ({{.COMMIT}}) {{.ROOT}}"
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
2024-12-18 15:53:45 -05:00
silent: true
2024-12-22 18:43:30 -05:00
start:
desc: Start the Network
silent: true
cmds:
- task: postgres:reset
- task: ipfs:init
- task: ipfs:mount
- task: sonrd:install
- task: hway:build
2025-01-01 13:55:21 -05:00
- task: procs:up
2024-12-22 18:43:30 -05:00
status:
desc: Check the status of the Network
silent: true
cmds:
2025-01-01 13:55:21 -05:00
- task: procs:attach
2024-12-22 18:43:30 -05:00
stop:
desc: Stop the Network
silent: true
cmds:
2025-01-01 13:55:21 -05:00
- task: procs:down
2024-12-22 18:43:30 -05:00