Files
nicholaswilde_recipes/Taskfile.yaml
nιcнolaѕ wιlde 5df1d76d5c Add docker-serve
Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
2022-05-31 00:52:11 +00:00

46 lines
969 B
YAML

---
version: '3'
tasks:
docker-serve:
desc: Serve an mkdocs server using Docker
cmds:
- >-
docker run --rm -it -p {{ .PORT }}:{{ .PORT}} -v ${PWD}:/docs
--platform linux/amd64 squidfunk/mkdocs-material serve
--dev-addr 0.0.0.0:{{ .PORT }} -f ./mkdocs.yml
vars:
PORT: 8000
lint:
desc: Lint the project
cmds:
- task: markdownlint
- task: yamllint
markdownlint:
desc: Run markdownlint-cli
cmds:
- >-
docker run --rm -it -v ${PWD}:/markdown:ro
06kellyjac/markdownlint-cli .
serve:
desc: Serve an mkdocs server
cmds:
- mkdocs serve
silent: true
server:
desc: Serve a cook server
cmds:
- cook server
silent: true
yamllint:
desc: Run yamllint
cmds:
- >-
docker run --rm -it -v ${PWD}:${PWD}:ro -w ${PWD}
programmerassistant/yamllint yamllint .
default:
cmds:
- task -a
silent: true