Skip to content

Add global parameters to tasks #628

@dmlemos

Description

@dmlemos

Motivation

In my use case I'd like to setup shell flags across all tasks as to avoid specifying the flags in every task. It is a little bit worse when using switch conditionals.

Given the following tasks

task "download" {
  check = "..."
  apply  = <<EOF
    set -e
    ...
EOF
task "extract" {
  check = "..."
  apply  = <<EOF
    set -e
    ...
EOF
task "deploy" {
  check = "..."
  apply  = <<EOF
    set -e
    ...
}

Proposal

Taking the same implementation from terraform:

config {
  interpreter = "/bin/bash"
  flags = ["-e"]
  timeout = "30"
}

Particular useful for timeout.
Anything in config would apply globally to all tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions