Skip to content

Commit

Permalink
feat: change serve task to docker image
Browse files Browse the repository at this point in the history
Signed-off-by: nιcнolaѕ wιlde <[email protected]>
  • Loading branch information
nicholaswilde committed Mar 7, 2023
1 parent 78e2016 commit 839d152
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
version: '3'

vars:
ROOT_DIR:
sh: git rev-parse --show-toplevel
PORT: 8000

tasks:
clean:
desc: Clean
Expand Down Expand Up @@ -75,7 +80,10 @@ tasks:
serve:
desc: Serve a mkdocs server
cmds:
- mkdocs serve
- >-
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
test:
desc: Run go tests
cmds:
Expand Down

0 comments on commit 839d152

Please sign in to comment.