layout, permalink
| layout | permalink |
|---|---|
| layouts/base.njk | /image/ |
taskfile.build
The taskfile.build Docker image runs any project. The only thing required is a task file.
Source: https://git.taskfile.build/tree/main/image
Usage
Setup environment variables:
export GIT_URL="https://git.taskfile.build"
export TASK_COMMANDS="install,build"
export CADDY_ROOT="_site"
Run the tasfile.buld image:
function run() {
echo "Open http://localhost:8080 in your browser"
docker run -p 8080:80 \
-e GIT_URL="$GIT_URL" \
-e TASK_COMMANDS="$TASK_COMMANDS" \
-e CADDY_ROOT="$CADDY_ROOT" \
janikvonrotz/taskfile.build:latest
The entrypoint script of the container will clone the project from git url. If the project is already cloned it will pull the origin. Afterwards if