Skip to content

Commit d1ab721

Browse files
committed
dx(taskfile): add inspect task & support setting used docker img
1 parent 668f45c commit d1ab721

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Taskfile.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
version: "3"
22

3+
vars:
4+
DOCKERIMG: '{{ default "ghcr.io/octoprint/custopizer:latest" .DOCKERIMG }}'
5+
36
tasks:
47
build:
58
cmds:
69
- |
7-
{{if eq OS "windows"}}powershell {{end}}docker run --rm --privileged -v {{.USER_WORKING_DIR | toSlash}}/workspace:/CustoPiZer/workspace -v {{.USER_WORKING_DIR | toSlash}}/scripts:/CustoPiZer/workspace/scripts ghcr.io/octoprint/custopizer:latest
10+
{{if eq OS "windows"}}powershell {{end}}docker run --rm --privileged -v {{.USER_WORKING_DIR | toSlash}}/workspace:/CustoPiZer/workspace -v {{.USER_WORKING_DIR | toSlash}}/scripts:/CustoPiZer/workspace/scripts {{.DOCKERIMG}}
811
preconditions:
912
- test -d workspace
1013
- test -f workspace/input.img
14+
15+
inspect:
16+
cmds:
17+
- |
18+
{{if eq OS "windows"}}powershell {{end}}docker run -it --rm --privileged -v {{.USER_WORKING_DIR | toSlash}}/workspace/output.img:/image.img {{.DOCKERIMG}} /CustoPiZer/enter_image /image.img
19+
preconditions:
20+
- test -d workspace
21+
- test -f workspace/output.img

0 commit comments

Comments
 (0)