Demonstrates the pipeline section and taskfile ci commands.
pipelinesection with explicit stages,when,docker_in_docker,artifacts,cachestagefield on tasks (auto-infer pipeline from tasks)condition— run task only if Docker is availablesilent— suppress command echoenv_file— per-environment.envfilestaskfile ci generate— generate GitHub Actions, GitLab CI, etc.taskfile ci run— run pipeline locallytaskfile ci preview— preview generated config
lint (ruff, mypy, pip-audit, bandit)
→ test (unit + integration with Docker)
→ build (docker build + push to GHCR)
→ deploy-staging (auto on develop branch)
→ deploy-prod (manual approval)
# Generate CI configs from pipeline section
taskfile ci generate --target github # → .github/workflows/taskfile.yml
taskfile ci generate --target gitlab # → .gitlab-ci.yml
taskfile ci generate --all # all 6 platforms
# Preview without writing files
taskfile ci preview --target github
# Run pipeline locally (same stages as CI)
taskfile ci run # full pipeline
taskfile ci run --stage test # only test stage
taskfile ci run --skip deploy-prod # all except prod deploy
taskfile ci run --stop-at build # lint → test → build, skip deploy
# Run individual tasks
taskfile run test
taskfile --env staging run deploy-staging
taskfile --env prod run deploy-prod --dry-run
# List pipeline stages
taskfile ci listwhen: manual— deploy-prod requires manual approval in CIwhen: "branch:develop"— deploy-staging auto-triggers on developdocker_in_docker: true— build stage gets Docker access in CIcondition— integration tests only run if Docker is availablesilent: true— health-check doesn't print the curl command