For the complete documentation index, see llms.txt. This page is also available as Markdown.

Task

Use Task in pipelines.

This guide covers configuring continuous integration pipelines to use Task.

Example Task file

Here is an example Taskfile.yml.

version: '3'

tasks:

  first:
    cmds:
      - echo "this is the {{.TASK}} task"

  second:
    deps: [first]
    cmds:
      - echo "this is the {{.TASK}} task"

  third:
    cmds:
      - echo "this is the {{.TASK}} task"

The below examples assume this file is checked in to the root of your repository.

Pipeline with one step

You can install Task and run task commands in a step.

Pipeline with multiple steps

If your pipeline has multiple steps, each step that runs tasks will need the task binary.

Here is a pipeline that installs the task binary to ./bin in the workspace, then runs tasks in separate steps.

Temporary volume

If you don't want to install the task binary in the workspace, you can install it in a temporary volume.

Last updated

Was this helpful?