Aller au contenu
duxt
Cette page n’est pas encore disponible dans votre langue
Vous la lisez en English (UK).

linear_release_stage

Manages a stage of a Linear release pipeline — one step a release passes through. Destroying the resource archives the stage.

linear_release_stage (Resource)

Manages a stage of a Linear release pipeline — one step a release passes through.

Destroying the resource archives the stage.

Example Usage

resource "linear_release_stage" "canary" {
  pipeline_id = linear_release_pipeline.web.id
  name        = "Canary"
  color       = "#f2c94c"
  type        = "started"
  position    = 1
}

resource "linear_release_stage" "production" {
  pipeline_id = linear_release_pipeline.web.id
  name        = "Production"
  color       = "#4cb782"
  type        = "completed"
  position    = 2
}

Schema

Required

  • color (String) Colour of the stage indicator as a hex string.
  • name (String) Name of the stage, e.g. Canary.
  • pipeline_id (String) UUID of the linear_release_pipeline the stage belongs to. Changing it replaces the stage.
  • position (Number) Sort position of the stage within the pipeline.
  • type (String) Category the stage belongs to — one of planned, started, completed, canceled. Changing it replaces the stage.

Optional

  • frozen (Boolean) Whether the stage is frozen — no release may move into it.

Read-Only

  • id (String) UUID of the stage.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Import by UUID.
terraform import linear_release_stage.example a1b2c3d4-0000-0000-0000-000000000000
Cette page vous a-t-elle été utile ?