mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 04:57:08 +00:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
version: "3"
|
|
|
|
vars:
|
|
VERSION:
|
|
sh: git describe --tags --abbrev=0
|
|
COMMIT:
|
|
sh: git rev-parse --short HEAD
|
|
ROOT:
|
|
sh: git rev-parse --show-toplevel
|
|
OS:
|
|
sh: uname -s
|
|
TASKS:
|
|
sh: task -l
|
|
DOPPLER_TOKEN:
|
|
sh: skate get DOPPLER_NETWORK
|
|
|
|
includes:
|
|
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
|
|
|
|
tasks:
|
|
default:
|
|
cmds:
|
|
- gh run ls -L 3
|
|
- gum format -- "# Sonr ({{.OS}}-{{.VERSION}})" " - ({{.COMMIT}}) {{.ROOT}}"
|
|
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
|
|
silent: true
|
|
|
|
start:
|
|
desc: Start the Network
|
|
silent: true
|
|
cmds:
|
|
- task: postgres:reset
|
|
- task: ipfs:init
|
|
- task: ipfs:mount
|
|
- task: sonrd:install
|
|
- task: hway:build
|
|
- task: procs:up
|
|
|
|
status:
|
|
desc: Check the status of the Network
|
|
silent: true
|
|
cmds:
|
|
- task: procs:attach
|
|
|
|
stop:
|
|
desc: Stop the Network
|
|
silent: true
|
|
cmds:
|
|
- task: procs:down
|