Last active
February 3, 2019 22:32
-
-
Save AdrianKoshka/006de98e4dd75eeb405b7715fcf4c07b to your computer and use it in GitHub Desktop.
My VScode tasks.json file for my blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Preview", | |
"type": "process", | |
"linux": { | |
"command": "podman", | |
"args": [ | |
"run", | |
"--rm", | |
"--net=host", | |
"--name=hp", | |
"-v", | |
"${workspaceFolder}:/workspace:z", | |
"quay.io/adrianlucrececeleste/alpine-hugo:latest", | |
"serve", | |
"--theme=kiss", | |
"--source=/workspace/src", | |
"--buildDrafts" | |
] | |
}, | |
"windows": { | |
"command": "docker", | |
"args": [ | |
"run", | |
"--rm", | |
"-it", | |
"--isolation=hyperv", | |
"--name=hp", | |
"-p", | |
"1313:1313", | |
"-v", | |
"${workspaceFolder}:C:\\workspace", | |
"adrianlucrececeleste/windows-hugo:latest", | |
"serve", | |
"--theme=kiss", | |
"--bind", | |
"0.0.0.0", | |
"--source=src", | |
"--buildDrafts" | |
] | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Build Blog", | |
"type": "process", | |
"linux": {"command": "podman", | |
"args": [ | |
"run", | |
"--rm", | |
"--net=host", | |
"--name=hb-$(git rev-parse HEAD)", | |
"-v", | |
"${workspaceFolder}:/workspace:z", | |
"quay.io/adrianlucrececeleste/alpine-hugo:latest", | |
"--cleanDestinationDir", | |
"--source=/workspace/src", | |
"--destination=/workspace/docs", | |
"--theme=kiss", | |
] | |
}, | |
"windows": { | |
"command": "docker", | |
"args": [ | |
"run", | |
"--rm", | |
"--isolation=hyperv", | |
"-it", | |
"--name=hb", | |
"-p", | |
"1313:1313", | |
"-v", | |
"${workspaceFolder}:C:\\workspace", | |
"adrianlucrececeleste/windows-hugo:latest", | |
"--cleanDestinationDir", | |
"--source=C:\\workspace\\src", | |
"--destination=C:\\workspace\\docs", | |
"--theme=kiss" | |
] | |
}, | |
"problemMatcher": [], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment