-
Notifications
You must be signed in to change notification settings - Fork 4
/
Taskfile.yml
50 lines (45 loc) · 1.68 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## NB: Probably don't edit me
## To make pulling upstream launchpad-starter changes seamless, it's recommended
## to add custom Tasks to a Taskfile.ext.yaml to prevent merge conflicts
## Any tasks you add to Taskfile.ext.yaml will be available under the ext group
# https://taskfile.dev/usage/
version: '3'
# For all Tasks, source in these environment variables
dotenv: ['.env']
# Import Taskfiles from launchpad-taskfiles
includes:
releases:
taskfile: https://raw.githubusercontent.com/graphops/launchpad-taskfiles/stable/taskfiles/releases.yml
indexer:
taskfile: https://raw.githubusercontent.com/graphops/launchpad-taskfiles/stable/taskfiles/indexer.yml
launchpad:
taskfile: https://raw.githubusercontent.com/graphops/launchpad-taskfiles/stable/taskfiles/launchpad.yml
utils:
taskfile: https://raw.githubusercontent.com/graphops/launchpad-taskfiles/stable/taskfiles/utils.yml
ext: # Optionally define your own Tasks here
taskfile: Taskfile.ext.yaml
optional: true
# Root Task definitions
tasks:
# Default task will list all available tasks
default:
desc: List all available tasks
silent: true
cmds:
- |
echo "When passing arguments to tasks, remember to preceed them with '--'. Example: task help -- releases:apply"
- echo
- task --list
help:
desc: "Display help for a task. Usage: help -- <task name>"
silent: true
cmds:
- |
set - {{.CLI_ARGS}}
TASK="$1"; shift
if [ -z "$TASK" ]; then
echo "You must pass a task as an argument. Example: task help -- task_name"
echo "To see all available commands, run: task"
exit 1
fi
task --summary $TASK