forked from AarhusAI/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
32 lines (26 loc) · 792 Bytes
/
Taskfile.yml
File metadata and controls
32 lines (26 loc) · 792 Bytes
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
version: '3'
# https://taskfile.dev/usage/#env-files
dotenv: [ '.env.local', '.env' ]
vars:
# https://taskfile.dev/reference/templating/
BASE_URL: '{{.TASK_BASE_URL | default .COMPOSE_SERVER_DOMAIN | default .COMPOSE_DOMAIN }}'
DOCKER_COMPOSE: '{{ .TASK_DOCKER_COMPOSE | default "itkdev-docker-compose" }}'
tasks:
default:
desc: 'List all tasks'
cmds:
- task --list-all
silent: true
compose:
desc: "Run `docker compose` command. Example: task compose -- up --detach"
cmds:
- '{{ .DOCKER_COMPOSE }} {{ .CLI_ARGS }}'
lint:
desc: "Run markdown linter"
cmds:
- task compose -- run --rm markdownlint markdownlint '**/*.md'
silent: true
open:
desc: Open the site in the browser
cmds:
- open http://{{ .BASE_URL }}